Configure git mergeoptions --no-edit on all branches

I am trying to configure git to always accept the default merge message when merging (with the --no-edit option). I found this answer ( Git merge does not use the default merge message, opens the editor with the default message ), but it does not work for me, and it is not listed in the manual ( git-config ).

The following configuration (with the actual name of the branch, not "*") works for one branch, but I need a configuration for all branches, so I tried this, but to no avail.

[branch "*"] mergeoptions = --no-edit 

Is there a global configuration for this?

EDIT

During the search, I found that the branch configuration * * was proposed some time ago as a patch, but was never implemented ( [PATCH] Add default merge options for all branches ).

+6
source share
1 answer

Switching the merge command with an alias adding --no-edit seems to work:

 [alias] merge = merge --no-edit 
0
source

All Articles