Rebase on latest master without having to switch branches

git fetch origin master:master
git rebase master

This avoids the `git stash && git checkout master && git pull && git checkout $branchname && git rebase master && git stash pop` dance that I’ve been doing for a long time.

Leave a Reply

Your email address will not be published.