How can I get git merge use the default git merge message instead of loading my editor with the specified message?
git merge
I don't have the editor specified in git config -l , so I'm not sure why it opens the editor.
git config -l
Found the answer after some digging
EDIT: as suggested by Mark, this is the best way to do this:
git config --global core.mergeoptions --no-edit
Using
export GIT_MERGE_AUTOEDIT=no
or
git merge --no-edit
This is a new Git feature introduced in Git 1.7.10 , to use the old one (don t provide a merge message) put these two lines in .bash_profile or .bashrc
.bash_profile
.bashrc
GIT_MERGE_AUTOEDIT=no export GIT_MERGE_AUTOEDIT