From: Ori Avtalion <ori@avtalion.name>
To: git@vger.kernel.org
Subject: [PATCH] Docs: Describe omitted <repository> behavior in a prominent place
Date: Tue, 6 Apr 2010 22:32:29 +0300 [thread overview]
Message-ID: <4bbb8fa3.0f1abc0a.2383.7991@mx.google.com> (raw)
The documentation of which repository is pushed to when the repository
flag is omitted was only mentioned under the --repo flag.
It is now described under the <repository> argument.
Signed-off-by: Ori Avtalion <ori@avtalion.name>
---
Documentation/git-push.txt | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt
index 59dc8b1..14d286e 100644
--- a/Documentation/git-push.txt
+++ b/Documentation/git-push.txt
@@ -31,6 +31,11 @@ OPTIONS[[OPTIONS]]
operation. This parameter can be either a URL
(see the section <<URLS,GIT URLS>> below) or the name
of a remote (see the section <<REMOTES,REMOTES>> below).
++
+If omitted, 'git push' derives the remote name from the current
+branch: If it tracks a remote branch, then that remote repository
+is pushed to. Otherwise, the name "origin" is used. This can be
+overridden with the `--repo` option.
<refspec>...::
The format of a <refspec> parameter is an optional plus
@@ -116,12 +121,10 @@ nor in any Push line of the corresponding remotes file---see below).
--repo=<repository>::
This option is only relevant if no <repository> argument is
- passed in the invocation. In this case, 'git push' derives the
- remote name from the current branch: If it tracks a remote
- branch, then that remote repository is pushed to. Otherwise,
- the name "origin" is used. For this latter case, this option
- can be used to override the name "origin". In other words,
- the difference between these two commands
+ passed in the invocation, and the current branch does not track
+ a remote branch. For this case, this option can be used to
+ override the name "origin". In other words, the difference
+ between these two commands
+
--------------------------
git push public #1
--
1.7.0
next reply other threads:[~2010-04-06 19:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-06 19:32 Ori Avtalion [this message]
2010-04-08 18:07 ` [PATCH] Docs: Describe omitted <repository> behavior in a prominent place Ori Avtalion
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4bbb8fa3.0f1abc0a.2383.7991@mx.google.com \
--to=ori@avtalion.name \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).