扫码关注官方订阅号
git reset HEAD~
执行了这个命令,有办法取消这个操作吗?
闭关修行中......
git reflog 查看操作历史,找到之前 HEAD 的 hash 值,然后 git reset --hard 到那个 hash 即可。
git reflog
git reset --hard
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
git reflog
查看操作历史,找到之前 HEAD 的 hash 值,然后git reset --hard
到那个 hash 即可。