git add -p
有相反的吗?有时我错误地添加了一个 block 并想将其从索引中删除(我通过 git reset; git add -p
并再次添加所有好的 block 来完成)。 git remove-from-index -p
命令在这种情况下会很有帮助。
最佳答案
来自 git-reset 手册页:
This means that git reset -p is the opposite of git add -p
^ | exact match of your post title
关于git - 与 git add -p 相反,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13065599/