diff options
| author | Julia Evans <julia@jvns.ca> | 2025-10-06 18:58:49 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-06 14:29:49 -0700 |
| commit | 3856d8937817c6815ecabaa3a927fc2e124e8155 (patch) | |
| tree | 90a218ad2c8b790c5e257d18ed6833b78557507a /Documentation/git-push.adoc | |
| parent | 428d7a0d89017a03089988f6512bcc779099ee3c (diff) | |
| download | git-3856d8937817c6815ecabaa3a927fc2e124e8155.tar.xz | |
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 <julia@jvns.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-push.adoc')
| -rw-r--r-- | Documentation/git-push.adoc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Documentation/git-push.adoc b/Documentation/git-push.adoc index 2b7f7de9dd..808e0380b2 100644 --- a/Documentation/git-push.adoc +++ b/Documentation/git-push.adoc @@ -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 |
