在项目文件夹下右键 -> Git Bash Here输入 git reflog 如图,然后找到你commit的那条记录,我的是HEAD@{1} 3. 然后输入 git reset --hard HEAD@{1}