git rebase
git reset --hard ORIG_HEAD
git merge
git reset --merge ORIG_HEAD
git reflog
and @ syntax also (google for more detail)E.g. Reset to the 2 HEAD moves ago
git reflog
# The reflog will show here
Then you can use:
git reset --hard HEAD@{2}