]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: git-push: clarify "where to push"
authorJulia Evans <julia@jvns.ca>
Tue, 30 Sep 2025 19:58:32 +0000 (19:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Sep 2025 20:44:01 +0000 (13:44 -0700)
It's not obvious that "`branch.*.remote` configuration"` refers to the
upstream, so say "upstream" instead.

The sentence is also quite hard to parse right now, use "defaults to" to
simplify it.

Signed-off-by: Julia Evans <julia@jvns.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-push.adoc

index 2b7f7de9dd296b84b7fac095ec96194223cd51cb..808e0380b29d3b6e437fbbc6c2362269e96fd3b3 100644 (file)
@@ -23,10 +23,8 @@ Updates one or more branches, tags, or other references in a remote
 repository from your local repository, and sends all necessary data
 that isn't already on the remote.
 
-When the command line does not specify where to push with the
-`<repository>` argument, `branch.*.remote` configuration for the
-current branch is consulted to determine where to push.  If the
-configuration is missing, it defaults to 'origin'.
+The `<repository>` argument defaults to the upstream for the current branch,
+or `origin` if there's no configured upstream.
 
 When the command line does not specify what to push with `<refspec>...`
 arguments or `--all`, `--mirror`, `--tags` options, the command finds