English ▾
Localized versions of git-fmt-merge-msg manual
  1. English
  2. Français
  3. Português (Brasil)
  4. українська мова
  5. 简体中文
Topics ▾ Version 2.0.5 ▾ git-fmt-merge-msg last updated in 2.50.0
Changes in the git-fmt-merge-msg manual
  1. 2.50.1 → 2.51.1 no changes
  2. 2.50.0 2025年06月16日
  3. 2.35.1 → 2.49.1 no changes
  4. 2.35.0 2022年01月24日
  5. 2.29.1 → 2.34.8 no changes
  6. 2.29.0 2020年10月19日
  7. 2.18.1 → 2.28.1 no changes
  8. 2.18.0 2018年06月21日
  9. 2.11.4 → 2.17.6 no changes
  10. 2.10.5 2017年09月22日
  11. 2.7.6 → 2.9.5 no changes
  12. 2.6.7 2017年05月05日
  13. 2.5.6 no changes
  14. 2.4.12 2017年05月05日
  15. 2.1.4 → 2.3.10 no changes
  16. 2.0.5 2014年12月17日

Check your version of git by running

git --version

NAME

git-fmt-merge-msg - Produce a merge commit message

SYNOPSIS

git fmt-merge-msg [-m <message>] [--log[=<n>] | --no-log] <$GIT_DIR/FETCH_HEAD
git fmt-merge-msg [-m <message>] [--log[=<n>] | --no-log] -F <file>

DESCRIPTION

Takes the list of merged objects on stdin and produces a suitable commit message to be used for the merge commit, usually to be passed as the <merge-message> argument of git merge.

This command is intended mostly for internal use by scripts automatically invoking git merge.

OPTIONS

--log[=<n>]

In addition to branch names, populate the log message with one-line descriptions from the actual commits that are being merged. At most <n> commits from each merge parent will be used (20 if <n> is omitted). This overrides the merge.log configuration variable.

--no-log

Do not list one-line descriptions from the actual commits being merged.

--[no-]summary

Synonyms to --log and --no-log; these are deprecated and will be removed in the future.

-m <message>
--message <message>

Use <message> instead of the branch names for the first line of the log message. For use with --log.

-F <file>
--file <file>

Take the list of merged objects from <file> instead of stdin.

CONFIGURATION

merge.branchdesc

In addition to branch names, populate the log message with the branch description text associated with them. Defaults to false.

merge.log

In addition to branch names, populate the log message with at most the specified number of one-line descriptions from the actual commits that are being merged. Defaults to false, and true is a synonym for 20.

merge.summary

Synonym to merge.log; this is deprecated and will be removed in the future.

SEE ALSO

GIT

Part of the git[1] suite

AltStyle によって変換されたページ (->オリジナル) /