1.使用 git reflog 以更新所有引用。
git reflog
2。 git reset <id_of_commit_to_which_you_want_restore>
git reset <id_of_commit_to_which_you_want_restore>