I'm on my branch (not master) and I need to get the latest version of master locally. I do next still staying on my branch:
git fetch
git rebase origin/master master
After this master is checked out and I need to go back to my branch. Is there any way to avoid the check out local master during rebase?