首页 > 执行了git reset,还有办法取消吗?

执行了git reset,还有办法取消吗?

git reset HEAD~

执行了这个命令,有办法取消这个操作吗?


git reflog 查看操作历史,找到之前 HEAD 的 hash 值,然后 git reset --hard 到那个 hash 即可。

【热门文章】
【热门文章】