git pull后如何恢复到原来的版本

git reflog 命令查看你的历史变更记录

git reset --hard HEAD@{n} (注意:n是你要回退到的引用位置)

你可能感兴趣的:(git pull后如何恢复到原来的版本)