Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 432 Bytes

checkout-previous-branch.md

File metadata and controls

13 lines (9 loc) · 432 Bytes

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.

source