Archive for October, 2017

git rebase

git pull --rebase origin master
First fetch the new master from the upstream repository, then rebase your work branch on that:


git fetch origin            # Updates origin/master
git rebase origin/master    # Rebases current branch onto origin/master
 
Advertisements

Leave a comment