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

Solution 1:

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

Solution 2:

Use

export GIT_MERGE_AUTOEDIT=no

or

git merge --no-edit

Solution 3:

This is a new feature of Git, introduced in Git 1.7.10, to use the old one (don't provide a message on merge) put these two lines in your .bash_profile or .bashrc

GIT_MERGE_AUTOEDIT=no
export GIT_MERGE_AUTOEDIT