git reflog ¶ See also https://git-scm.com/docs/git-reflog https://github.blog/2015-06-08-how-to-undo-almost-anything-with-git/