Configure git mergeoptions --no-edit on all branches

git, merge

Solution

Overriding the `merge` command with an alias that appends `--no-edit` seems to work:

[alias]
    merge = merge --no-edit

Problem

I'm trying to configure git to always accept the default merge message when merging (with option --no-edit). I found this answer (Git merge doesn't use default merge message, opens editor with default message) but it doesn't work for me, and it is not listed in the manual (git-config). The following configuration (with an actual branch name rather than "*") does work for a single branch, but I need the configuration on all branches, so I tried this, to no avail. ``` [branch "*"] mergeoptions = --no-edit ``` Is there any global configuration to do this ? EDIT While searching I found the branch "*" configuration was proposed a while back as a patch, but never implemented ([PATCH] Add default merge options for all branches).

Original source

Related problems