I would like to issue one command that lets me interactively either ADD a hunk, DISCARD a hunk or leave the hunk unstaged...
Actually as I know of there is only:
git add -p
: ADDs hunks interactively (or leave unstaged) git checkout -p
: DISCARDS hunks interactively (or leave unstaged)
Is there a command in GIT that has the options of "git add -p" and "git checkout -p" COMBINED ?
The answer to this question provided here is not at all satisfactory : (
There is no native git command that can do both. Although I do think that a better command-line hunk manager would be very useful in the git community. You should include git reset -p
in your question as well, it's quite handy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With