Unstage only new files using Git
This question already has an answer here:
有一种方法可以做到这一点,即暂停/重置所有内容,然后只重新设定你想要的内容:
git reset HEAD ./
git add -u
# -u stages changes to tracked files, and will not stage new files.
链接地址: http://www.djcxy.com/p/6164.html
上一篇: 你怎么能撤消最后的git add?
下一篇: 仅使用Git卸载新文件