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

Git Good with Git! — Intermediate

Git Good with Git! — Intermediate

Intermediate Git workshop.

erynofwales

August 06, 2012
Tweet

Other Decks in Technology

Transcript

  1. JavaScript Ruby Python Shell Java PHP C C++ Perl Objective-C

    0% 5% 10% 15% 20% 3% 4% 4% 7% 7% 8% 8% 9% 14% 20% Top Languages (C) 2012 GITHUB, FETCHED 2012-08-04 21 Tuesday, 2012 August 7
  2. JavaScript Ruby Python Shell Java PHP C C++ Perl Objective-C

    0% 5% 10% 15% 20% 3% 4% 4% 7% 7% 8% 8% 9% 14% 20% Top Languages (C) 2012 GITHUB, FETCHED 2012-08-04 21 Tuesday, 2012 August 7
  3. A B C E D F master foo HEAD 31

    Tuesday, 2012 August 7
  4. A B C E D F master foo HEAD 35

    Tuesday, 2012 August 7
  5. A B C E D F master foo HEAD 38

    Tuesday, 2012 August 7
  6. git commit A B C E D F master foo

    HEAD A B C E D F master foo HEAD 40 Tuesday, 2012 August 7
  7. git commit git commit -m ‘blah blah blah’ A B

    C E D F master foo HEAD A B C E D F master foo HEAD 40 Tuesday, 2012 August 7
  8. git commit git commit -m ‘blah blah blah’ A B

    C E D F G master foo HEAD A B C E D F G master foo HEAD 40 Tuesday, 2012 August 7
  9. git commit git commit -m ‘blah blah blah’ A B

    C E D F G master foo HEAD A B C E D F G master foo HEAD 40 Tuesday, 2012 August 7
  10. git reset A B C E D F G master

    foo HEAD A B C E D F G master foo HEAD 42 Tuesday, 2012 August 7
  11. git reset git reset F A B C E D

    F G master foo HEAD A B C E D F G master foo HEAD 42 Tuesday, 2012 August 7
  12. git reset git reset F A B C E D

    F G master foo HEAD A B C E D F G master foo HEAD 42 Tuesday, 2012 August 7
  13. git checkout A B C E D F G master

    foo HEAD A B C E D F G master foo HEAD 44 Tuesday, 2012 August 7
  14. git checkout git checkout master A B C E D

    F G master foo HEAD A B C E D F G master foo HEAD 44 Tuesday, 2012 August 7
  15. git checkout git checkout master A B C E D

    F G master foo HEAD A B C E D F G master foo HEAD 44 Tuesday, 2012 August 7
  16. git checkout A B C E D F G master

    foo HEAD A B C E D F G master foo HEAD 45 Tuesday, 2012 August 7
  17. git checkout git checkout F A B C E D

    F G master foo HEAD A B C E D F G master foo HEAD 45 Tuesday, 2012 August 7
  18. git checkout git checkout F A B C E D

    F G master foo HEAD A B C E D F G master foo HEAD 45 Tuesday, 2012 August 7
  19. git checkout git checkout F A B C E D

    F G master foo HEAD A B C E D F G master foo HEAD DETACHED HEAD 45 Tuesday, 2012 August 7
  20. git branch A B C E D F G master

    foo HEAD 47 Tuesday, 2012 August 7
  21. git branch A B C E D F G master

    foo HEAD git branch bar 47 Tuesday, 2012 August 7
  22. git branch A B C E D F G master

    foo bar HEAD 48 Tuesday, 2012 August 7
  23. git merge A B C E D F G master

    foo HEAD 50 Tuesday, 2012 August 7
  24. git merge A B C E D F G master

    foo HEAD git merge foo 50 Tuesday, 2012 August 7
  25. git merge A B C E D H F G

    master foo HEAD 51 Tuesday, 2012 August 7
  26. git merge A B C E D H F G

    master foo HEAD 52 Tuesday, 2012 August 7
  27. git rebase A B C E D F G master

    foo HEAD 54 Tuesday, 2012 August 7
  28. git rebase A B C E D F G master

    foo HEAD git rebase master 54 Tuesday, 2012 August 7
  29. git rebase A B C D E' F' G' master

    foo HEAD 55 Tuesday, 2012 August 7
  30. git remote and git remote -v git remote add git

    remote rm 61 Tuesday, 2012 August 7
  31. A B C E D F master foo HEAD GITHUB

    63 Tuesday, 2012 August 7
  32. A B C E D F master foo HEAD GITHUB

    A B C E D F master foo HEAD LOCAL 63 Tuesday, 2012 August 7
  33. git fetch A B C E D F G master

    foo HEAD 65 Tuesday, 2012 August 7
  34. git fetch A B C E D F G master

    foo HEAD git fetch origin foo 65 Tuesday, 2012 August 7
  35. git fetch A B C E D F G H

    master foo origin/foo HEAD FETCH_HEAD 66 Tuesday, 2012 August 7
  36. git fetch A B C E D F G H

    master foo origin/foo HEAD FETCH_HEAD git merge origin/foo 66 Tuesday, 2012 August 7
  37. git fetch A B C E D F G H

    master foo origin/foo HEAD 67 Tuesday, 2012 August 7
  38. git pull A B C E D F G master

    foo HEAD 69 Tuesday, 2012 August 7
  39. git pull A B C E D F G master

    foo HEAD git pull origin foo 69 Tuesday, 2012 August 7
  40. git pull A B C E D F G H

    master foo origin/foo HEAD 70 Tuesday, 2012 August 7
  41. git pull A B C E D F G H

    master foo origin/foo HEAD 72 Tuesday, 2012 August 7
  42. git pull git push origin foo A B C E

    D F G H master foo origin/foo HEAD 72 Tuesday, 2012 August 7
  43. git pull A B C E D F G H

    master foo origin/foo HEAD 73 Tuesday, 2012 August 7
  44. [user] ! name = Eryn Wells ! email = [email protected]

    [core] editor = vim quotepath = false [color] ui = auto [merge] tool = vimdiff [alias] st = status co = checkout ci = commit br = branch lg = log --graph --pretty=format:'%Cred%h%Creset - %C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative push = push -u [ui] ! color = true [mergetool] ! keepBackup = true 81 Tuesday, 2012 August 7
  45. Aliases git config alias.lg “log --graph --pretty=format:'%Cred%h %Creset -%C(yellow)%d%Creset %s

    %Cgreen(%cr) %C(bold blue)< %an>%Creset' --abbrev-commit --date=relative” 83 Tuesday, 2012 August 7
  46. # Xcode build/* *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3

    !default.perspectivev3 *.xcworkspace !default.xcworkspace xcuserdata profile *.moved-aside 86 Tuesday, 2012 August 7