How to undo Git reset hard?
You just finished a long interactive rebase. You hit enter. Your commit history looks… wrong. There is a bunch of things that could go wrong: You could dig through git reflog for 10 minutes. Or you could press Git’s hidden undo button: ORIG_HEAD.