Loading

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.
posted @ 2022-11-07 11:33  ZXYFrank  阅读(598)  评论(0编辑  收藏  举报