Git branching model for TAPTeam

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →

Git branching model for TAPTeam

Grzegorz Wilczyński

October 10, 2012

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

14 slides
  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.

More Decks by Grzegorz Wilczyński

Other Decks in Programming