mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
432 B
432 B
Checkout Previous Branch
Git makes it easy to checkout the last branch you were on.
$ git checkout -
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.