Workflow
There will be two branches to start with
master
: Default branch when yougit init
. This is stable branch. Latest stable tag will always point to this.develop
: Development branch. This will be like nightly release branch. Latest RC/alpha/beta release will always point to this.
Process:
- When you do
git init
, you will get amaster
branch automatically. - Always run
git checkout -b develop
to start a develop branch. Yes, your master will be empty at this point but it's fine as you have nothing to release at this point. Rememeber, master is supposed to always build.
More advance workflow can be followed by using - http://nvie.com/posts/a-successful-git-branching-model/
A tool to automate - https://github.com/nvie/gitflow