How to `git apply` hunk by hunk like `git add --patch`?
May 30, 7:39am
To apply a patch hunk by hunk (interactively) like git add --patch, you can use the --interactive or -i flag with git apply. However, git apply does not natively support an interactive mode like git add -p or git checkout -p.
Workaround: Use git checkout -p or git stash -p
If you want to selectively apply parts of a patch, the best approach is to use: