It works for other things too, e.g. you can undo rebase with `git reset master@{1}` (i.e. reset master to previous location of master).