How can I make it so that executing git add will include the -p flag by default?
There's no way to change defaults of commands in git. You can add your own alias though. For instance, I like to use this one:
git config --global alias.patch 'add -p'
# git add -p file.txt
git patch file.txt
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