6 git-fmt-merge-msg - Produce a merge commit message
12 'git fmt-merge-msg' [-m <message>] [--into-name <branch>] [--log[=<n>] | --no-log]
13 'git fmt-merge-msg' [-m <message>] [--log[=<n>] | --no-log] -F <file>
17 Takes the list of merged objects on stdin and produces a suitable
18 commit message to be used for the merge commit, usually to be
19 passed as the '<merge-message>' argument of 'git merge'.
21 This command is intended mostly for internal use by scripts
22 automatically invoking 'git merge'.
28 In addition to branch names, populate the log message with
29 one-line descriptions from the actual commits that are being
30 merged. At most <n> commits from each merge parent will be
31 used (20 if <n> is omitted). This overrides the `merge.log`
32 configuration variable.
35 Do not list one-line descriptions from the actual commits being
39 Synonyms to --log and --no-log; these are deprecated and will be
40 removed in the future.
44 Use <message> instead of the branch names for the first line
45 of the log message. For use with `--log`.
47 --into-name <branch>::
48 Prepare the merge message as if merging to the branch `<branch>`,
49 instead of the name of the real branch to which the merge is made.
53 Take the list of merged objects from <file> instead of
58 include::config/fmt-merge-msg.txt[]
61 Synonym to `merge.log`; this is deprecated and will be removed in
68 $ git fetch origin master
69 $ git fmt-merge-msg --log <$GIT_DIR/FETCH_HEAD
72 Print a log message describing a merge of the "master" branch from
82 Part of the linkgit:git[1] suite