Your SlideShare is downloading. ×
0
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	 ...
Why	  git?	  •  Distributed.	  •  Full	  history	  repository.	  •  No	  network	  requirement,	  work	  offline	  at	     a...
Object	  Database	                http://www.youtube.com/watch?v=GYnOwPl8yCE	  3/1/13	                 Crea3ve	  Common	  ...
4	  Object	  Types                                              	  •  Blob	  (content)	                                   ...
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-­‐...
GIT	  Expressed	  in	  UML	                       hcp://utsl.gen.nz/talks/git-­‐svn/intro.html	  	  3/1/13	               ...
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	 ...
Demo	  
3/1/13	                          Crea3ve	  Common	  BY-­‐AS-­‐NC	                        16	               Credit:	  hcp:/...
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...
Backup	  Slides	  
hcps://raw.github.com/macharrison/Git-­‐Supervisual-­‐Cheatsheet/master/gitcheat.png	  	  3/1/13	     Crea3ve	  Common	  B...
3/1/13	     Crea3ve	  Common	  BY-­‐AS-­‐NC	     22	  
Upcoming SlideShare
Loading in...5
×

Git studynotes

183

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
183
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
4
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Git studynotes"

  1. 1. git  A  Study  Note     Richard  Kuo  
  2. 2. What?  Why?  How?  When?  3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   2  
  3. 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. 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. 5. Object  Database   http://www.youtube.com/watch?v=GYnOwPl8yCE  3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   5  
  6. 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. 7. GIT  Object  Model  3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   7  
  8. 8. References  3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   8  
  9. 9. Git  Commit  3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   9  
  10. 10. Scenario  3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   10  
  11. 11. 3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   11   hcp://www.technovelty.org/linux/git-­‐workflow.html  
  12. 12. GIT  Expressed  in  UML   hcp://utsl.gen.nz/talks/git-­‐svn/intro.html    3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   12  
  13. 13. 3  +  1  Areas  3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   13  
  14. 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  
  15. 15. Demo  
  16. 16. 3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   16   Credit:  hcp://nvie.com/posts/a-­‐successful-­‐git-­‐branching-­‐model/  
  17. 17. 3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   17  
  18. 18. 3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   18  
  19. 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  
  20. 20. Backup  Slides  
  21. 21. hcps://raw.github.com/macharrison/Git-­‐Supervisual-­‐Cheatsheet/master/gitcheat.png    3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   21  
  22. 22. 3/1/13   Crea3ve  Common  BY-­‐AS-­‐NC   22  
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×