step1
git branch 查看当前分支
step2 :查看历史版本,其中main@{0}是当前版本,例如我要取消此次pull操作,所以回退到main@{1}版本
git reflog main(你当前出错的分支名)
step3:选择要回退到的版本
git reset --hard main@{1}
step4:ok啦~
step1
git branch 查看当前分支
step2 :查看历史版本,其中main@{0}是当前版本,例如我要取消此次pull操作,所以回退到main@{1}版本
git reflog main(你当前出错的分支名)
step3:选择要回退到的版本
git reset --hard main@{1}
step4:ok啦~