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

Git branching model for TAPTeam

Git branching model for TAPTeam

Avatar for Grzegorz Wilczyński

Grzegorz Wilczyński

October 10, 2012
Tweet

More Decks by Grzegorz Wilczyński

Other Decks in Programming

Transcript

  1. $ git branch gw-test $ git checkout gw-test $ vim

    gw-test.txt $ git add . $ git commit -m "added something" $ git push origin gw-test
  2. Manual $ git checkout master $ git fetch origin $

    git merge origin/gw-test2 $ git push origin master
  3. At this point the repository has all the commits from

    the original repository, but they are not integrated into the the cloned repository’s local branches. $ git fetch origin
  4. # Be sure everything is up to date. $ git

    checkout master $ git pull # Remove remote tracking branches which no longer exist. $ git remote prune origin # See what branches are merged. $ git branch -r --merged master Git Landscaping
  5. # Remote $ git push origin :gw-test # Local $

    git branch -d gw-test Mr Clean
  6. Branch Prefixing - You know who is responsible for deleting

    each branch - You can find all your branches quickly with tab completion - You can easily find a teammate’s branch with only a general idea of its name.