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:
This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.