如果你在git checkout .之前没有git stash ,那么就恢复不了了. 建议使用 git stash 恢复使用 git stash pop https://www.cnblogs.com/zndxall/p/9549878.html