Skip to content

Instantly share code, notes, and snippets.

@KidkArolis
Created March 21, 2011 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KidkArolis/879447 to your computer and use it in GitHub Desktop.
Save KidkArolis/879447 to your computer and use it in GitHub Desktop.

Git Drill

master is stable

starting a new milestone

git branch v0.9.8-dev
git checkout v0.9.8-dev
git push origin v0.9.8-dev

that's how we created a new dev branch

if master got updates due to bugfixes

# when in master
git pull master
git checkout v0.9.8-dev
git merge master
git push

we pulled master, and merged it onto the dev branch

when all bugs are fixed we might deploy a new version

git checkout master
git tag v0.9.7.3
git push origin v0.9.7.3

when we finish working on the dev branch

git checkout master
git merge v0.9.8-dev
git tag v0.9.8
git push
git push origin :v0.9.8-dev

(as learnt on http://philsturgeon.co.uk/news/2009/11/Managing-stable-and-unstable-branches-in-Git)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment