You can check git reflog to see what your HEAD previously pointed out. When you find the commit id, you can check it via git checkout <commit-id> . After you enable this commit, you can create a branch to specify it via git checkout -b <branch-name> .
meagar
source share