LDI generally use git add -e <file> instead of git add -p \<file\> You can modify the patch hunks with a text editor with git add -e . It is much more convenient in my opinion.Comment·Article·Sep 4, 2022·Git Commands you may not know but can be very useful