Currently when I’m working on my local feature branch in order to get latest changes I need to do the following:
git checkout master
git fetch
git rebase
git checkout my-feature
git rebase master
Is there a simplier solution to just pull changes to master branch without switching to it?
I think Git will always switch to
masterbehind the scene, to perform the rebase (considering thatrebasestarts by a checkout of the destination branch:see “
git rebase, keeping track of ‘local‘ and ‘remote‘“).You just can use the shortcut
git pull --rebase: