Undo git reset
$ git reset HEAD~
$ git reset HEAD@{1}
$ git reflog # to list the history of HEAD
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
$ git reset HEAD~
$ git reset HEAD@{1}
$ git reflog # to list the history of HEAD