kjb kjb - 1 year ago 168
Git Question

Git merge doesn't use default merge message, opens editor with default message

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.

kjb kjb
Answer Source

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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download