TIL: git checkout -

1 points by amitu ↗ HN
Does what you expect it to.

1 comment

[ 2.8 ms ] story [ 11.2 ms ] thread
git checkout @{-2}

Checks out the branch you were on two checkouts ago.