How can I force git merge
to use the default merge message instead of loading my editor with said message?
I have no editor listed in git config -l
, so I'm not sure why it opens an editor.
The command to do this is git config --global core. editor "nano" . You can change the highlighted section with your editor of choice!
press "esc" (escape) write ":wq" (write & quit)
Found the answer after some digging
EDIT: As per Mark's suggestion, this is the best way to do so:
git config --global core.mergeoptions --no-edit
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