SlideShare uma empresa Scribd logo
1 de 22
Baixar para ler offline
git	
  
A	
  Study	
  Note	
  
         	
  
   Richard	
  Kuo	
  
What?	
  Why?	
  How?	
  When?	
  



3/1/13	
        Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
     2	
  
What	
  is	
  git?	
  
•  Free	
  open	
  source	
  soDware	
  version	
  control	
  
   tool.	
  
•  Created	
  by	
  Linus	
  Torvalds	
  In	
  2	
  weeks	
  for	
  
   managing	
  Linux	
  code.	
  

•  GitHub:	
  soDware	
  hos3ng	
  site	
  -­‐	
  On	
  16	
  
   January	
  2013,	
  GitHub	
  announced	
  it	
  had	
  
   passed	
  the	
  3	
  million	
  users	
  mark	
  and	
  now	
  
   hos3ng	
  more	
  than	
  5	
  million	
  repositories.	
  
3/1/13	
                       Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
     3	
  
Why	
  git?	
  
•  Distributed.	
  
•  Full	
  history	
  repository.	
  
•  No	
  network	
  requirement,	
  work	
  offline	
  at	
  
   anywhere	
  and	
  any3me.	
  
•  Small	
  foot	
  print	
  and	
  fast.	
  
•  Flexible,	
  accommodate	
  any	
  workflow.	
  
•  Pseudo	
  industry	
  standard.	
  

3/1/13	
                  Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
     4	
  
Object	
  Database	
  
              http://www.youtube.com/watch?v=GYnOwPl8yCE	
  




3/1/13	
                 Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
     5	
  
4	
  Object	
  Types                                              	
  




•  Blob	
  (content)	
                                                 •  Tree	
  (directory	
  lis3ngs)	
  
        -­‐  Header	
                                                          -­‐  Header	
  
        -­‐  File	
  content.	
                                                -­‐  For	
  each	
  file	
  or	
  directory	
  
                                                                                          -­‐    File	
  permission	
  
                                                                                          -­‐    Object	
  type	
  
                                                                                          -­‐    SHA-­‐1	
  
                                                                                          -­‐    File	
  /	
  Directory	
  name	
  



•  Commit	
  (snapshots)	
                                             	
   Tag	
  (meta-­‐data	
  of	
  a	
  commit)	
  
                                                                       • 
         –    Author	
  informa3on	
                                             –        Name	
  
         –    Commicer	
  informa3on	
                                           –        Tagger	
  
         –    Commit	
  message	
  
                                                                                 –        Date	
  
         –    SHA-­‐1	
  of	
  any	
  parent	
  commits	
  
         –    SHA-­‐1	
  of	
  the	
  tree	
  that	
  the	
                      –        Commit	
  hash	
  
              commit	
  points	
  to	
                                           –        …	
  
3/1/13	
                                          Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
                                                 6	
  
GIT	
  Object	
  Model	
  




3/1/13	
            Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
     7	
  
References	
  




3/1/13	
       Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
     8	
  
Git	
  Commit	
  




3/1/13	
       Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
     9	
  
Scenario	
  




3/1/13	
     Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
     10	
  
3/1/13	
                Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
           11	
  
             hcp://www.technovelty.org/linux/git-­‐workflow.html	
  
GIT	
  Expressed	
  in	
  UML	
  
                     hcp://utsl.gen.nz/talks/git-­‐svn/intro.html	
  	
  




3/1/13	
                   Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
              12	
  
3	
  +	
  1	
  Areas	
  




3/1/13	
        Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
     13	
  
Important	
  Concepts	
  
•  Manipulate	
  graph.	
  
•  Track	
  contents,	
  not	
  files.	
  
•  Object	
  name	
  is	
  hash	
  code	
  which	
  generated	
  
   from	
  its	
  content.	
  
•  Immutable	
  objects,	
  move	
  reference	
  pointers.	
  




3/1/13	
                 Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
     14	
  
Demo	
  
3/1/13	
                          Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
                        16	
  
             Credit:	
  hcp://nvie.com/posts/a-­‐successful-­‐git-­‐branching-­‐model/	
  
3/1/13	
     Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
     17	
  
3/1/13	
     Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
     18	
  
References	
  
•  Books	
  and	
  tutorials	
  
         –  Git	
  Immersion	
  
         –  Cheat	
  Sheet	
  
         –  A	
  Visual	
  Git	
  Reference	
  
•  Workflow	
  	
  
         –  Commit	
  policy	
  
         –  A	
  successful	
  Git	
  branching	
  model	
  
•  Credit:	
  Patrick	
  Hogan	
  for	
  Images	
  for	
  slides	
  5,	
  7,	
  8,	
  10	
  about	
  
   objects	
  database.	
  




3/1/13	
                                          Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
                   19	
  
Backup	
  Slides	
  
hcps://raw.github.com/macharrison/Git-­‐Supervisual-­‐Cheatsheet/master/gitcheat.png	
  	
  

3/1/13	
     Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
                                                            21	
  
3/1/13	
     Crea3ve	
  Common	
  BY-­‐AS-­‐NC	
     22	
  

Mais conteúdo relacionado

Mais procurados

Shrinking the silo boundary: data and schema in the Semantic Web
Shrinking the silo boundary: data and schema in the Semantic WebShrinking the silo boundary: data and schema in the Semantic Web
Shrinking the silo boundary: data and schema in the Semantic WebGordon Dunsire
 
The Semantic Web #5 - RDF (2)
The Semantic Web #5 - RDF (2)The Semantic Web #5 - RDF (2)
The Semantic Web #5 - RDF (2)Myungjin Lee
 
Querying Linked Data on Android
Querying Linked Data on AndroidQuerying Linked Data on Android
Querying Linked Data on AndroidEUCLID project
 
Aileen O'Carroll - DRI Training UCC: Introduction to Metadata
Aileen O'Carroll - DRI Training UCC: Introduction to MetadataAileen O'Carroll - DRI Training UCC: Introduction to Metadata
Aileen O'Carroll - DRI Training UCC: Introduction to Metadatadri_ireland
 
An Introduction to the Open Archives Initiative Object Reuse and Exchange (OA...
An Introduction to the Open Archives Initiative Object Reuse and Exchange (OA...An Introduction to the Open Archives Initiative Object Reuse and Exchange (OA...
An Introduction to the Open Archives Initiative Object Reuse and Exchange (OA...Jenn Riley
 

Mais procurados (11)

NISO/DCMI Webinar: Cooperative Authority Control: The Virtual International A...
NISO/DCMI Webinar: Cooperative Authority Control: The Virtual International A...NISO/DCMI Webinar: Cooperative Authority Control: The Virtual International A...
NISO/DCMI Webinar: Cooperative Authority Control: The Virtual International A...
 
Shrinking the silo boundary: data and schema in the Semantic Web
Shrinking the silo boundary: data and schema in the Semantic WebShrinking the silo boundary: data and schema in the Semantic Web
Shrinking the silo boundary: data and schema in the Semantic Web
 
Linked (Open) Data
Linked (Open) DataLinked (Open) Data
Linked (Open) Data
 
Rdf
RdfRdf
Rdf
 
Unlocking Doors: recent initiatives in open and linked data at the National L...
Unlocking Doors: recent initiatives in open and linked data at the National L...Unlocking Doors: recent initiatives in open and linked data at the National L...
Unlocking Doors: recent initiatives in open and linked data at the National L...
 
The Semantic Web #5 - RDF (2)
The Semantic Web #5 - RDF (2)The Semantic Web #5 - RDF (2)
The Semantic Web #5 - RDF (2)
 
Querying Linked Data on Android
Querying Linked Data on AndroidQuerying Linked Data on Android
Querying Linked Data on Android
 
Aileen O'Carroll - DRI Training UCC: Introduction to Metadata
Aileen O'Carroll - DRI Training UCC: Introduction to MetadataAileen O'Carroll - DRI Training UCC: Introduction to Metadata
Aileen O'Carroll - DRI Training UCC: Introduction to Metadata
 
Introduction to RDF
Introduction to RDFIntroduction to RDF
Introduction to RDF
 
Fedora Migration Considerations
Fedora Migration ConsiderationsFedora Migration Considerations
Fedora Migration Considerations
 
An Introduction to the Open Archives Initiative Object Reuse and Exchange (OA...
An Introduction to the Open Archives Initiative Object Reuse and Exchange (OA...An Introduction to the Open Archives Initiative Object Reuse and Exchange (OA...
An Introduction to the Open Archives Initiative Object Reuse and Exchange (OA...
 

Semelhante a Git studynotes

Large-Scale Data Storage and Processing for Scientists with Hadoop
Large-Scale Data Storage and Processing for Scientists with HadoopLarge-Scale Data Storage and Processing for Scientists with Hadoop
Large-Scale Data Storage and Processing for Scientists with HadoopEvert Lammerts
 
Borthakur hadoop univ-research
Borthakur hadoop univ-researchBorthakur hadoop univ-research
Borthakur hadoop univ-researchsaintdevil163
 
Files concepts.53
Files concepts.53Files concepts.53
Files concepts.53myrajendra
 
Introduction to Git for developers
Introduction to Git for developersIntroduction to Git for developers
Introduction to Git for developersDmitry Guyvoronsky
 
March 2013 Bioinformatics Working Group
March 2013 Bioinformatics Working GroupMarch 2013 Bioinformatics Working Group
March 2013 Bioinformatics Working GroupGenomeInABottle
 
Open Source Storage at Scale: Ceph @ GRNET
Open Source Storage at Scale: Ceph @ GRNETOpen Source Storage at Scale: Ceph @ GRNET
Open Source Storage at Scale: Ceph @ GRNETNikos Kormpakis
 
Large scale crawling with Apache Nutch
Large scale crawling with Apache NutchLarge scale crawling with Apache Nutch
Large scale crawling with Apache NutchJulien Nioche
 
Linux Container Primitives and Runtimes (CON407-R1) - AWS re:Invent 2018
Linux Container Primitives and Runtimes (CON407-R1) - AWS re:Invent 2018Linux Container Primitives and Runtimes (CON407-R1) - AWS re:Invent 2018
Linux Container Primitives and Runtimes (CON407-R1) - AWS re:Invent 2018Amazon Web Services
 
Oxford Common File Layout (OCFL)
Oxford Common File Layout (OCFL)Oxford Common File Layout (OCFL)
Oxford Common File Layout (OCFL)Simeon Warner
 
Bio2 Rdf Presentation V3
Bio2 Rdf Presentation V3Bio2 Rdf Presentation V3
Bio2 Rdf Presentation V3nolmar01
 
Glusterfs and openstack
Glusterfs  and openstackGlusterfs  and openstack
Glusterfs and openstackopenstackindia
 
Facebook's HBase Backups - StampedeCon 2012
Facebook's HBase Backups - StampedeCon 2012Facebook's HBase Backups - StampedeCon 2012
Facebook's HBase Backups - StampedeCon 2012StampedeCon
 
Linux Memory Analysis with Volatility
Linux Memory Analysis with VolatilityLinux Memory Analysis with Volatility
Linux Memory Analysis with VolatilityAndrew Case
 
Michael stack -the state of apache h base
Michael stack -the state of apache h baseMichael stack -the state of apache h base
Michael stack -the state of apache h basehdhappy001
 
FILEgrain: Transport-Agnostic, Fine-Grained Content-Addressable Container Ima...
FILEgrain: Transport-Agnostic, Fine-Grained Content-Addressable Container Ima...FILEgrain: Transport-Agnostic, Fine-Grained Content-Addressable Container Ima...
FILEgrain: Transport-Agnostic, Fine-Grained Content-Addressable Container Ima...Akihiro Suda
 
Red Hat Gluster Storage : GlusterFS
Red Hat Gluster Storage : GlusterFSRed Hat Gluster Storage : GlusterFS
Red Hat Gluster Storage : GlusterFSbipin kunal
 

Semelhante a Git studynotes (20)

Git session-2012-2013
Git session-2012-2013Git session-2012-2013
Git session-2012-2013
 
Large-Scale Data Storage and Processing for Scientists with Hadoop
Large-Scale Data Storage and Processing for Scientists with HadoopLarge-Scale Data Storage and Processing for Scientists with Hadoop
Large-Scale Data Storage and Processing for Scientists with Hadoop
 
Borthakur hadoop univ-research
Borthakur hadoop univ-researchBorthakur hadoop univ-research
Borthakur hadoop univ-research
 
Files concepts.53
Files concepts.53Files concepts.53
Files concepts.53
 
Introduction to Git for developers
Introduction to Git for developersIntroduction to Git for developers
Introduction to Git for developers
 
March 2013 Bioinformatics Working Group
March 2013 Bioinformatics Working GroupMarch 2013 Bioinformatics Working Group
March 2013 Bioinformatics Working Group
 
Open Source Storage at Scale: Ceph @ GRNET
Open Source Storage at Scale: Ceph @ GRNETOpen Source Storage at Scale: Ceph @ GRNET
Open Source Storage at Scale: Ceph @ GRNET
 
Large scale crawling with Apache Nutch
Large scale crawling with Apache NutchLarge scale crawling with Apache Nutch
Large scale crawling with Apache Nutch
 
Python in Action (Part 2)
Python in Action (Part 2)Python in Action (Part 2)
Python in Action (Part 2)
 
Linux Container Primitives and Runtimes (CON407-R1) - AWS re:Invent 2018
Linux Container Primitives and Runtimes (CON407-R1) - AWS re:Invent 2018Linux Container Primitives and Runtimes (CON407-R1) - AWS re:Invent 2018
Linux Container Primitives and Runtimes (CON407-R1) - AWS re:Invent 2018
 
Oxford Common File Layout (OCFL)
Oxford Common File Layout (OCFL)Oxford Common File Layout (OCFL)
Oxford Common File Layout (OCFL)
 
Bio2 Rdf Presentation V3
Bio2 Rdf Presentation V3Bio2 Rdf Presentation V3
Bio2 Rdf Presentation V3
 
Glusterfs and openstack
Glusterfs  and openstackGlusterfs  and openstack
Glusterfs and openstack
 
Facebook's HBase Backups - StampedeCon 2012
Facebook's HBase Backups - StampedeCon 2012Facebook's HBase Backups - StampedeCon 2012
Facebook's HBase Backups - StampedeCon 2012
 
Linux Memory Analysis with Volatility
Linux Memory Analysis with VolatilityLinux Memory Analysis with Volatility
Linux Memory Analysis with Volatility
 
Michael stack -the state of apache h base
Michael stack -the state of apache h baseMichael stack -the state of apache h base
Michael stack -the state of apache h base
 
FILEgrain: Transport-Agnostic, Fine-Grained Content-Addressable Container Ima...
FILEgrain: Transport-Agnostic, Fine-Grained Content-Addressable Container Ima...FILEgrain: Transport-Agnostic, Fine-Grained Content-Addressable Container Ima...
FILEgrain: Transport-Agnostic, Fine-Grained Content-Addressable Container Ima...
 
Hot sec10 slide-suzaki
Hot sec10 slide-suzakiHot sec10 slide-suzaki
Hot sec10 slide-suzaki
 
Red Hat Gluster Storage : GlusterFS
Red Hat Gluster Storage : GlusterFSRed Hat Gluster Storage : GlusterFS
Red Hat Gluster Storage : GlusterFS
 
Distcp gobblin
Distcp gobblinDistcp gobblin
Distcp gobblin
 

Mais de Richard Kuo

Machine Learning - Convolutional Neural Network
Machine Learning - Convolutional Neural NetworkMachine Learning - Convolutional Neural Network
Machine Learning - Convolutional Neural NetworkRichard Kuo
 
View Orchestration from Model Driven Engineering Prospective
View Orchestration from Model Driven Engineering ProspectiveView Orchestration from Model Driven Engineering Prospective
View Orchestration from Model Driven Engineering ProspectiveRichard Kuo
 
Telecom Infra Project study notes
Telecom Infra Project study notesTelecom Infra Project study notes
Telecom Infra Project study notesRichard Kuo
 
5g, gpu and fpga
5g, gpu and fpga5g, gpu and fpga
5g, gpu and fpgaRichard Kuo
 
Kubernetes20151017a
Kubernetes20151017aKubernetes20151017a
Kubernetes20151017aRichard Kuo
 
UML, OWL and REA based enterprise business model 20110201a
UML, OWL and REA based enterprise business model 20110201aUML, OWL and REA based enterprise business model 20110201a
UML, OWL and REA based enterprise business model 20110201aRichard Kuo
 
Open v switch20150410b
Open v switch20150410bOpen v switch20150410b
Open v switch20150410bRichard Kuo
 
Spark Study Notes
Spark Study NotesSpark Study Notes
Spark Study NotesRichard Kuo
 
Docker and coreos20141020b
Docker and coreos20141020bDocker and coreos20141020b
Docker and coreos20141020bRichard Kuo
 
Cloud computing reference architecture from nist and ibm
Cloud computing reference architecture from nist and ibmCloud computing reference architecture from nist and ibm
Cloud computing reference architecture from nist and ibmRichard Kuo
 

Mais de Richard Kuo (14)

Machine Learning - Convolutional Neural Network
Machine Learning - Convolutional Neural NetworkMachine Learning - Convolutional Neural Network
Machine Learning - Convolutional Neural Network
 
View Orchestration from Model Driven Engineering Prospective
View Orchestration from Model Driven Engineering ProspectiveView Orchestration from Model Driven Engineering Prospective
View Orchestration from Model Driven Engineering Prospective
 
Telecom Infra Project study notes
Telecom Infra Project study notesTelecom Infra Project study notes
Telecom Infra Project study notes
 
5g, gpu and fpga
5g, gpu and fpga5g, gpu and fpga
5g, gpu and fpga
 
Learning
Learning Learning
Learning
 
Kubernetes20151017a
Kubernetes20151017aKubernetes20151017a
Kubernetes20151017a
 
IaaS with Chef
IaaS with ChefIaaS with Chef
IaaS with Chef
 
SDN and NFV
SDN and NFVSDN and NFV
SDN and NFV
 
Graph Database
Graph DatabaseGraph Database
Graph Database
 
UML, OWL and REA based enterprise business model 20110201a
UML, OWL and REA based enterprise business model 20110201aUML, OWL and REA based enterprise business model 20110201a
UML, OWL and REA based enterprise business model 20110201a
 
Open v switch20150410b
Open v switch20150410bOpen v switch20150410b
Open v switch20150410b
 
Spark Study Notes
Spark Study NotesSpark Study Notes
Spark Study Notes
 
Docker and coreos20141020b
Docker and coreos20141020bDocker and coreos20141020b
Docker and coreos20141020b
 
Cloud computing reference architecture from nist and ibm
Cloud computing reference architecture from nist and ibmCloud computing reference architecture from nist and ibm
Cloud computing reference architecture from nist and ibm
 

Git studynotes

  • 1. git   A  Study  Note     Richard  Kuo  
  • 2. What?  Why?  How?  When?   3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   2  
  • 3. What  is  git?   •  Free  open  source  soDware  version  control   tool.   •  Created  by  Linus  Torvalds  In  2  weeks  for   managing  Linux  code.   •  GitHub:  soDware  hos3ng  site  -­‐  On  16   January  2013,  GitHub  announced  it  had   passed  the  3  million  users  mark  and  now   hos3ng  more  than  5  million  repositories.   3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   3  
  • 4. Why  git?   •  Distributed.   •  Full  history  repository.   •  No  network  requirement,  work  offline  at   anywhere  and  any3me.   •  Small  foot  print  and  fast.   •  Flexible,  accommodate  any  workflow.   •  Pseudo  industry  standard.   3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   4  
  • 5. Object  Database   http://www.youtube.com/watch?v=GYnOwPl8yCE   3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   5  
  • 6. 4  Object  Types   •  Blob  (content)   •  Tree  (directory  lis3ngs)   -­‐  Header   -­‐  Header   -­‐  File  content.   -­‐  For  each  file  or  directory   -­‐  File  permission   -­‐  Object  type   -­‐  SHA-­‐1   -­‐  File  /  Directory  name   •  Commit  (snapshots)     Tag  (meta-­‐data  of  a  commit)   •  –  Author  informa3on   –  Name   –  Commicer  informa3on   –  Tagger   –  Commit  message   –  Date   –  SHA-­‐1  of  any  parent  commits   –  SHA-­‐1  of  the  tree  that  the   –  Commit  hash   commit  points  to   –  …   3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   6  
  • 7. GIT  Object  Model   3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   7  
  • 8. References   3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   8  
  • 9. Git  Commit   3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   9  
  • 10. Scenario   3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   10  
  • 11. 3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   11   hcp://www.technovelty.org/linux/git-­‐workflow.html  
  • 12. GIT  Expressed  in  UML   hcp://utsl.gen.nz/talks/git-­‐svn/intro.html     3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   12  
  • 13. 3  +  1  Areas   3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   13  
  • 14. Important  Concepts   •  Manipulate  graph.   •  Track  contents,  not  files.   •  Object  name  is  hash  code  which  generated   from  its  content.   •  Immutable  objects,  move  reference  pointers.   3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   14  
  • 16. 3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   16   Credit:  hcp://nvie.com/posts/a-­‐successful-­‐git-­‐branching-­‐model/  
  • 17. 3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   17  
  • 18. 3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   18  
  • 19. References   •  Books  and  tutorials   –  Git  Immersion   –  Cheat  Sheet   –  A  Visual  Git  Reference   •  Workflow     –  Commit  policy   –  A  successful  Git  branching  model   •  Credit:  Patrick  Hogan  for  Images  for  slides  5,  7,  8,  10  about   objects  database.   3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   19  
  • 22. 3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   22