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

Git Workflow

Travis Douce
December 04, 2014

Git Workflow

Travis Douce

December 04, 2014
Tweet

More Decks by Travis Douce

Other Decks in Programming

Transcript

  1. commit message Commit to repo * See end of slides

    for writing great commit messages
  2. sha

  3. f

  4. the long running branch The Big Bad Ogre, Oct. Nov.

    Dec. Replaces ‘wolf’ with ‘ogre’
  5. From the perspective of master,! I don’t want to know

    every time Jacob Grimm! merged master into jacob_grimm/big_bad_ogre. If we now merged jacob_grimm/big_bad_ogre into master,! the merge commit would then be included in master.
  6. From the perspective of master,! I don’t want to know

    every time Jacob Grimm! merged master into jacob_grimm/big_bad_ogre. Let’s fix that! If we now merged jacob_grimm/big_bad_ogre into master,! the merge commit would then be included in master.
  7. History as a graph No ‘bubble’!?! Git will ‘fast forward’

    merge if possible! I like to see the feature branch ‘bubble’
  8. History as a graph No ‘bubble’!?! Git will ‘fast forward’

    merge if possible! I like to see the feature branch ‘bubble’
  9. Fast Forward 1 2 3 4 5 6 HEAD, master

    jacob_grimm/big_bad_ogre
  10. 5 Fast Forward 1 2 3 4 6 HEAD, master

    jacob_grimm/big_bad_ogre
  11. 5 Fast Forward 1 2 3 4 6 , HEAD,

    master jacob_grimm/big_bad_ogre
  12. 5 Fast Forward 1 2 3 4 6 , HEAD,

    master jacob_grimm/big_bad_ogre
  13. History as a graph No ‘bubble’!?! Git will ‘fast forward’

    merge if possible! I like to see feature branch ‘bubble’(s)
  14. Install Git! http://git-scm.com/book/en/v2/Getting-Started-Installing-Git http://kj-prince.com/code/install-git-mac-osx-homebrew/ Git Pro (great book)! http://git-scm.com/book/en/v2 Bash

    Completion! https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion https://conra.dk/2013/01/18/git-on-osx.html Display git branch name in prompt! http://stackoverflow.com/questions/17333531/how-can-i-display-the-current- branch-and-folder-path-in-terminal Git Workflow Videos with Andy Lindeman! http://vimeo.com/33166064 http://vimeo.com/33165748 Well formed commit messages! http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html http://robots.thoughtbot.com/5-useful-tips-for-a-better-commit-message Resources