Undo git add --all
本问题已经有最佳答案,请猛点这里访问。
我犯了一个错误,打电话给
已多次回答:
You can use
git reset . This will 'unstage' all the files you've
added after your last commit.If you want to unstage only some files, use
git reset -- .
Also it's possible to unstage some of the changes in files by using
git reset -p .
见
- 如何在提交前撤消"git add"?
- 如何撤消上一个Git添加?
要重置可使用的特定文件: