Monday, June 15, 2015

Verioning by Git Branchs

Version 0.1:

Create a branch (version)
git checkout -b 0.1.x

Do something / Commit / Push

git checkout master
git merge 0.1.x


Version 0.2:

git checkout -b 0.2.x

Do changes / Commit / Push

git checkout master
git merge 0.2.x

1 comment:

RN said...

Use git tags, instead of branch. Use branch when to branching and do not want to mixed up with master repo until the code are done, so pull and merge it with master when finished.

Btw, recommended tag are:
Major.Minor.Patch, for example "version 1.3.17"