与git相反添加-p

Mic*_*ann 31 git

有相反的git add -p吗?有时我会错误地添加一个块,并希望将其从索引中删除(我这样做git reset; git add -p并再次添加所有好的块).一个git remove-from-index -p命令是在这种情况下有帮助.

gre*_*ire 51

从git-reset手册页:

这意味着git reset -p与git add -p相反

                                  ^
                                  |
                        exact match of your post title
Run Code Online (Sandbox Code Playgroud)