TIL: git checkout -

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

1 comment

[ 3.5 ms ] story [ 14.7 ms ] thread
git checkout @{-2}

Checks out the branch you were on two checkouts ago.