Git 找回因回退历史版本操作而丢失的本地新代码 2022-06-16 09:28:28 1、使用git reflog 命令,结果如下: 2、假设我现在想找回 HEAD@{5} 的代码,执行git reset --hard HEAD@{5} 命令即可