Git GitHub How to

Git Rebase

Rebase is useful when you want to get the latest changes from the master branch into your branch. The benefit is that you will save time when merge into the master branch and you can use latest code added by your team mate.

To do rebase:

git checkout master
git pull

git checkout feature_branch
git rebase master
git push -f

Leave a Reply

Your email address will not be published. Required fields are marked *