Maybe this already exists somewhere and I don't know about it ... Anyway, when working on feature branches I wanted a quick way to switch to master, pull, switch back and finally rebase. So I made a little script ( https://gist.github.com/lelanthran/6c9bd1125f89e7621364878d1... ) that pushes the current branch name onto a stack before switching to a new branch, and allows me to switch back to the topmost branch on th…
g co master
g fetch
g rebase
g co -
g rebase -
Where ’alias g=git’ and ’g config alias.co=checkout’