summaryrefslogtreecommitdiffstats
path: root/git-push.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-02-26 14:13:10 -0800
committerJunio C Hamano <gitster@pobox.com>2016-02-26 14:13:10 -0800
commit76df4f76799400e688028a29f01197b675545f84 (patch)
tree7c3757358cae00870963af7d540f83ea3d39b8c6 /git-push.txt
parent3fcdd0774d9c54ba3fd7344eed95570cd2e5f329 (diff)
downloadgit-htmldocs-76df4f76799400e688028a29f01197b675545f84.tar.gz
Autogenerated HTML docs for v2.8.0-rc0
Diffstat (limited to 'git-push.txt')
-rw-r--r--git-push.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-push.txt b/git-push.txt
index 669a357c8..cf6ee4a4d 100644
--- a/git-push.txt
+++ b/git-push.txt
@@ -37,6 +37,13 @@ the default `<refspec>` by consulting `remote.*.push` configuration,
and if it is not found, honors `push.default` configuration to decide
what to push (See linkgit:git-config[1] for the meaning of `push.default`).
+When neither the command-line nor the configuration specify what to
+push, the default behavior is used, which corresponds to the `simple`
+value for `push.default`: the current branch is pushed to the
+corresponding upstream branch, but as a safety measure, the push is
+aborted if the upstream branch does not have the same name as the
+local one.
+
OPTIONS[[OPTIONS]]
------------------