Sometimes you may want to take a branch and rebase it to the master branch. Here is a simple way to get this done.

First make sure you are on the branch you want to merge, then run the following commands:


# First make sure you are on the branch you want to merge
git fetch origin
git rebase origin/master


Related External Links: