git 清空缓存 git rm -r --cached . 之后恢复
https://stackoverflow.com/questions/25311743/undo-git-rm-r-cached
If you've run only git rm -r --cached, try doing a git reset HEAD . from within your repo root.
If you did a git commit -m "msg" after doing a git rm -r --cached, i.e., you committed the changes, then do git reset HEAD~1 to undo your last commit.
本博文本意在于记录个人的思考与经验,部分博文采用英语写作,可能影响可读性,请见谅
本文来自博客园,作者:ZXYFrank,转载请注明原文链接:https://www.cnblogs.com/zxyfrank/p/16865408.html