TIL: git checkout -

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

1 comment

[ 0.18 ms ] story [ 29.9 ms ] thread
git checkout @{-2}

Checks out the branch you were on two checkouts ago.