Skip to content

Commit 336023f

Browse files
committed
doc: git-push: clarify "where to push"
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 <[email protected]>
1 parent 10a9718 commit 336023f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Documentation/git-push.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ Updates one or more branches, tags, or other references in a remote
2323
repository from your local repository, and sends all necessary data
2424
that isn't already on the remote.
2525

26-
When the command line does not specify where to push with the
27-
`<repository>` argument, `branch.*.remote` configuration for the
28-
current branch is consulted to determine where to push. If the
29-
configuration is missing, it defaults to 'origin'.
26+
The `<repository>` argument defaults to the upstream for the current branch,
27+
or `origin` if there's no configured upstream.
3028

3129
When the command line does not specify what to push with `<refspec>...`
3230
arguments or `--all`, `--mirror`, `--tags` options, the command finds

0 commit comments

Comments
 (0)