summaryrefslogtreecommitdiffstats
path: root/git-push.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-10-02 15:50:01 -0700
committerJunio C Hamano <gitster@pobox.com>2012-10-02 15:50:01 -0700
commitcb857f233db5714207a62269ed0dda448d62d675 (patch)
tree20210e68ae638e36bc0267dcd9e1c3e77921bdf9 /git-push.html
parent6a8a84871508aff5efeb8ba8fdc725b4e6d871b2 (diff)
downloadgit-htmldocs-cb857f233db5714207a62269ed0dda448d62d675.tar.gz
Autogenerated HTML docs for v1.8.0-rc0-8-gb65f3
Diffstat (limited to 'git-push.html')
-rw-r--r--git-push.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/git-push.html b/git-push.html
index 5a760de32..b48ed7a92 100644
--- a/git-push.html
+++ b/git-push.html
@@ -620,7 +620,9 @@ documentation for <a href="git-receive-pack.html">git-receive-pack(1)</a>.</p></
<tt>+</tt>, followed by the source ref &lt;src&gt;, followed
by a colon <tt>:</tt>, followed by the destination ref &lt;dst&gt;.
It is used to specify with what &lt;src&gt; object the &lt;dst&gt; ref
- in the remote repository is to be updated.
+ in the remote repository is to be updated. If not specified,
+ the behavior of the command is controlled by the <tt>push.default</tt>
+ configuration variable.
</p>
<div class="paragraph"><p>The &lt;src&gt; is often the name of the branch you would want to push, but
it can be any arbitrary "SHA-1 expression", such as <tt>master~4</tt> or
@@ -643,7 +645,8 @@ directs git to push "matching" branches: for every branch that exists on
the local side, the remote side is updated if a branch of the same name
already exists on the remote side. This is the default operation mode
if no explicit refspec is found (that is neither on the command line
-nor in any Push line of the corresponding remotes file---see below).</p></div>
+nor in any Push line of the corresponding remotes file---see below) and
+no <tt>push.default</tt> configuration variable is set.</p></div>
</dd>
<dt class="hdlist1">
--all
@@ -1307,7 +1310,8 @@ a case where you do mean to lose history.</p></div>
<tt>git push origin :</tt>.
</p>
<div class="paragraph"><p>The default behavior of this command when no &lt;refspec&gt; is given can be
-configured by setting the <tt>push</tt> option of the remote.</p></div>
+configured by setting the <tt>push</tt> option of the remote, or the <tt>push.default</tt>
+configuration variable.</p></div>
<div class="paragraph"><p>For example, to default to pushing only the current branch to <tt>origin</tt>
use <tt>git config remote.origin.push HEAD</tt>. Any valid &lt;refspec&gt; (like
the ones in the examples below) can be configured as the default for
@@ -1423,7 +1427,7 @@ a <tt>git gc</tt> command on the origin repository.</p></div>
<div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2012-05-02 15:00:44 PDT
+Last updated 2012-10-02 15:49:44 PDT
</div>
</div>
</body>