Skip to content

Commit d4e7b9b

Browse files
committed
Merge branch 'mm/push-simple-doc' into maint
The documentation did not clearly state that the 'simple' mode is now the default for "git push" when push.default configuration is not set. * mm/push-simple-doc: Documentation/git-push: document that 'simple' is the default
2 parents b7a6ec6 + f6b1fb3 commit d4e7b9b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/git-push.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ the default `<refspec>` by consulting `remote.*.push` configuration,
3737
and if it is not found, honors `push.default` configuration to decide
3838
what to push (See linkgit:git-config[1] for the meaning of `push.default`).
3939

40+
When neither the command-line nor the configuration specify what to
41+
push, the default behavior is used, which corresponds to the `simple`
42+
value for `push.default`: the current branch is pushed to the
43+
corresponding upstream branch, but as a safety measure, the push is
44+
aborted if the upstream branch does not have the same name as the
45+
local one.
46+
4047

4148
OPTIONS[[OPTIONS]]
4249
------------------

0 commit comments

Comments
 (0)