Monday, 25 May 2015

Git rebase a topic branch

When you work on your own branch and finished the work it should 'put' back to the master branch without create a merge commit that is very disgust.

Our branch name is 'topic'.

git checkout topic
git rebase master
git checkout master
git merge topic  - this create a fast forward merge

And now we're happy.

No comments:

Post a Comment