问题描述: 提交unity资源代码时,commit失败,又错误回滚到上一个版本,资源代码丢了一大堆。 解决方法如下: 1、执行命令: git reflog 2、git reset --hard HEAD@{2} 亲测有效!