checkout last branch
Sometimes you are checking out mutltiple different git branches and want to navigate back to previous branch.
You can use git checkout -
to do it
example :
If you want to checkout 2 branches a go. you can do
Basically git checkout -
is equql to git checkout @{-1}
If you want to list all of the checked out branch (history) you can use this script
I added this as a git command on my zsh. have a look at this commit
Last updated