merge-config.txt 3.28 KB
Newer Older
1
merge.conflictStyle::
2 3
	Specify the style in which conflicted hunks are written out to
	working tree files upon merge.  The default is "merge", which
4 5 6 7
	shows a `<<<<<<<` conflict marker, changes made by one side,
	a `=======` marker, changes made by the other side, and then
	a `>>>>>>>` marker.  An alternate style, "diff3", adds a `|||||||`
	marker and the original text before the `=======` marker.
8

9 10 11
merge.defaultToUpstream::
	If merge is called without any commit argument, merge the upstream
	branches configured for the current branch by using their last
12
	observed values stored in their remote-tracking branches.
13 14 15
	The values of the `branch.<current branch>.merge` that name the
	branches at the remote named by `branch.<current branch>.remote`
	are consulted, and then they are mapped via `remote.<remote>.fetch`
16
	to their corresponding remote-tracking branches, and the tips of
17 18
	these tracking branches are merged.

19
merge.ff::
20
	By default, Git does not create an extra merge commit when merging
21 22
	a commit that is a descendant of the current commit. Instead, the
	tip of the current branch is fast-forwarded. When set to `false`,
23
	this variable tells Git to create an extra merge commit in such
24 25 26 27 28
	a case (equivalent to giving the `--no-ff` option from the command
	line). When set to `only`, only such fast-forward merges are
	allowed (equivalent to giving the `--ff-only` option from the
	command line).

29
include::fmt-merge-msg-config.txt[]
30

31 32 33 34 35
merge.renameLimit::
	The number of files to consider when performing rename detection
	during a merge; if not specified, defaults to the value of
	diff.renameLimit.

36
merge.renormalize::
37
	Tell Git that canonical representation of files in the
38 39
	repository has changed over time (e.g. earlier commits record
	text files with CRLF line endings, but recent ones use LF line
40
	endings).  In such a repository, Git can convert the data
41 42 43 44 45
	recorded in commits to a canonical form before performing a
	merge to reduce unnecessary conflicts.  For more information,
	see section "Merging branches with differing checkin/checkout
	attributes" in linkgit:gitattributes[5].

46 47 48 49
merge.stat::
	Whether to print the diffstat between ORIG_HEAD and the merge result
	at the end of the merge.  True by default.

50
merge.tool::
51 52 53 54 55 56
	Controls which merge tool is used by linkgit:git-mergetool[1].
	The list below shows the valid built-in values.
	Any other value is treated as a custom merge tool and requires
	that a corresponding mergetool.<tool>.cmd variable is defined.

include::mergetools-merge.txt[]
57 58 59 60 61 62 63

merge.verbosity::
	Controls the amount of output shown by the recursive merge
	strategy.  Level 0 outputs nothing except a final error
	message if conflicts were detected. Level 1 outputs only
	conflicts, 2 outputs conflicts and file changes.  Level 5 and
	above outputs debugging information.  The default is level 2.
64
	Can be overridden by the `GIT_MERGE_VERBOSITY` environment variable.
65 66

merge.<driver>.name::
67
	Defines a human-readable name for a custom low-level
68 69 70 71 72 73 74 75 76 77
	merge driver.  See linkgit:gitattributes[5] for details.

merge.<driver>.driver::
	Defines the command that implements a custom low-level
	merge driver.  See linkgit:gitattributes[5] for details.

merge.<driver>.recursive::
	Names a low-level merge driver to be used when
	performing an internal merge between common ancestors.
	See linkgit:gitattributes[5] for details.