天天看点

git撤销pull命令

1、运行<code>git reflog</code>命令查看你的历史变更记录

git撤销pull命令

2.然后用<code>git reset --hard HEAD@{n}</code>,(n是你要回退到的引用位置)回退。

比如上图可运行 <code>git reset --hard 40a9a83</code>

git