2
2
--no-commit::
3
3
Perform the merge and commit the result. This option can
4
4
be used to override --no-commit.
5
+ ifdef::git-pull[]
6
+ Only useful when merging.
7
+ endif::git-pull[]
5
8
+
6
9
With --no-commit perform the merge and stop just before creating
7
10
a merge commit, to give the user a chance to inspect and further
@@ -39,6 +42,7 @@ set to `no` at the beginning of them.
39
42
to `MERGE_MSG` before being passed on to the commit machinery in the
40
43
case of a merge conflict.
41
44
45
+ ifdef::git-merge[]
42
46
--ff::
43
47
--no-ff::
44
48
--ff-only::
@@ -47,6 +51,22 @@ set to `no` at the beginning of them.
47
51
default unless merging an annotated (and possibly signed) tag
48
52
that is not stored in its natural place in the `refs/tags/`
49
53
hierarchy, in which case `--no-ff` is assumed.
54
+ endif::git-merge[]
55
+ ifdef::git-pull[]
56
+ --ff-only::
57
+ Only update to the new history if there is no divergent local
58
+ history. This is the default when no method for reconciling
59
+ divergent histories is provided (via the --rebase=* flags).
60
+
61
+ --ff::
62
+ --no-ff::
63
+ When merging rather than rebasing, specifies how a merge is
64
+ handled when the merged-in history is already a descendant of
65
+ the current history. If merging is requested, `--ff` is the
66
+ default unless merging an annotated (and possibly signed) tag
67
+ that is not stored in its natural place in the `refs/tags/`
68
+ hierarchy, in which case `--no-ff` is assumed.
69
+ endif::git-pull[]
50
70
+
51
71
With `--ff`, when possible resolve the merge as a fast-forward (only
52
72
update the branch pointer to match the merged branch; do not create a
@@ -55,9 +75,11 @@ descendant of the current history), create a merge commit.
55
75
+
56
76
With `--no-ff`, create a merge commit in all cases, even when the merge
57
77
could instead be resolved as a fast-forward.
78
+ ifdef::git-merge[]
58
79
+
59
80
With `--ff-only`, resolve the merge as a fast-forward when possible.
60
81
When not possible, refuse to merge and exit with a non-zero status.
82
+ endif::git-merge[]
61
83
62
84
-S[<keyid>]::
63
85
--gpg-sign[=<keyid>]::
@@ -73,6 +95,9 @@ When not possible, refuse to merge and exit with a non-zero status.
73
95
In addition to branch names, populate the log message with
74
96
one-line descriptions from at most <n> actual commits that are being
75
97
merged. See also linkgit:git-fmt-merge-msg[1].
98
+ ifdef::git-pull[]
99
+ Only useful when merging.
100
+ endif::git-pull[]
76
101
+
77
102
With --no-log do not list one-line descriptions from the
78
103
actual commits being merged.
@@ -102,10 +127,17 @@ With --no-squash perform the merge and commit the result. This
102
127
option can be used to override --squash.
103
128
+
104
129
With --squash, --commit is not allowed, and will fail.
130
+ ifdef::git-pull[]
131
+ +
132
+ Only useful when merging.
133
+ endif::git-pull[]
105
134
106
135
--no-verify::
107
136
This option bypasses the pre-merge and commit-msg hooks.
108
137
See also linkgit:githooks[5].
138
+ ifdef::git-pull[]
139
+ Only useful when merging.
140
+ endif::git-pull[]
109
141
110
142
-s <strategy>::
111
143
--strategy=<strategy>::
@@ -127,6 +159,10 @@ With --squash, --commit is not allowed, and will fail.
127
159
default trust model, this means the signing key has been signed by
128
160
a trusted key. If the tip commit of the side branch is not signed
129
161
with a valid key, the merge is aborted.
162
+ ifdef::git-pull[]
163
+ +
164
+ Only useful when merging.
165
+ endif::git-pull[]
130
166
131
167
--summary::
132
168
--no-summary::
@@ -166,3 +202,7 @@ endif::git-pull[]
166
202
projects that started their lives independently. As that is
167
203
a very rare occasion, no configuration variable to enable
168
204
this by default exists and will not be added.
205
+ ifdef::git-pull[]
206
+ +
207
+ Only useful when merging.
208
+ endif::git-pull[]
0 commit comments