SyntaxFix
Write A Post
Hire A Developer
Questions
A great way to drive home the point made in the correct answers is to run git reflog HEAD, you get a history of all of the places HEAD has pointed.
git reflog HEAD