Upgrade to Pro — share decks privately, control downloads, hide ads and more …

An introduction to Git

An introduction to Git

My presentation slides for HannoverJS. This presentation based a little bit on http://progit.org/ . Don't know, if the slides make a lot sense without my drivel...

Pascal Precht

January 23, 2012
Tweet

More Decks by Pascal Precht

Other Decks in Programming

Transcript

  1. What is Git? •  VCS  (Version  Control  System)   • 

    Open  Source   •  Fully  Distributed  
  2. What is Git? •  VCS  (Version  Control  System)   • 

    Open  Source   •  Fully  Distributed   •  Local    
  3. Working offline •  Performing  a  diff   •  Viewing  file

     history   •  CommiBng  changes   •  Merging  branches  
  4. Working offline •  Performing  a  diff   •  Viewing  file

     history   •  CommiBng  changes   •  Merging  branches   •  Obtaining  other  revisions  of  a  file  
  5. Working offline •  Performing  a  diff   •  Viewing  file

     history   •  CommiBng  changes   •  Merging  branches   •  Obtaining  other  revisions  of  a  file   •  Switching  branches  
  6. Configuration   •  git  config    -­‐-­‐global  user.name  ‘‘NAME‘‘  

    •  git  config  -­‐-­‐global  user.email  ‘‘EMAIL‘‘      
  7. Flow •  Init  /  clone   •  edit   • 

    add   •  status  /  diff   •  commit    
  8. Bare repositories •  Not  a  working  directory   •  May

     exist  on  the  same  maschine   •  push  /  pull  
  9. BOOM!   •  TwiNer:  @PascalPrecht   •  Blog:  hopelessart.com  

    •  GitHub:  github.com/PascalPrecht     •  Images:  hNp://progit.org