Checkout Previous Branch
Last updated
Was this helpful?
Last updated
Was this helpful?
Git makes it easy to checkout the last branch you were on.
This is shorthand for git checkout @{-1}
which is a way of referring to the previous (or last) branch you were on. You can use this trick to easily bounce back and forth between master
and a feature branch.