diff options
author | Junio C Hamano <junio@hera.kernel.org> | 2009-03-18 01:54:48 +0000 |
---|---|---|
committer | Junio C Hamano <junio@hera.kernel.org> | 2009-03-18 01:54:48 +0000 |
commit | ea82cff53ef3184e59a2e9e334f99284248e8b35 (patch) | |
tree | 772babff00e6437b22c2096d0b22c39eed6e3951 /git-push.html | |
parent | 064b4ab54285c3775f9f7a98235a28b0becfcebb (diff) | |
download | git-htmldocs-ea82cff53ef3184e59a2e9e334f99284248e8b35.tar.gz |
Autogenerated HTML docs for v1.6.2.1-147-g642d0
Diffstat (limited to 'git-push.html')
-rw-r--r-- | git-push.html | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/git-push.html b/git-push.html index c70a27b73..f2926617e 100644 --- a/git-push.html +++ b/git-push.html @@ -333,7 +333,7 @@ necessary to complete the given refs.</p></div> every time you push into it, by setting up <em>hooks</em> there. See
documentation for <a href="git-receive-pack.html">git-receive-pack(1)</a>.</p></div>
</div>
-<h2 id="_options">OPTIONS</h2>
+<h2 id="_options_a_id_options_a">OPTIONS<a id="OPTIONS"></a></h2>
<div class="sectionbody">
<div class="vlist"><dl>
<dt>
@@ -777,6 +777,41 @@ reason <div class="sectionbody">
<div class="vlist"><dl>
<dt>
+git push
+</dt>
+<dd>
+<p>
+ Works like <tt>git push <remote></tt>, where <remote> is the
+ current branch's remote (or <tt>origin</tt>, if no remote is
+ configured for the current branch).
+</p>
+</dd>
+<dt>
+git push origin
+</dt>
+<dd>
+<p>
+ Without additional configuration, works like
+ <tt>git push origin :</tt>.
+</p>
+<div class="para"><p>The default behavior of this command when no <refspec> is given can be
+configured by setting the <tt>push</tt> option of the remote.</p></div>
+<div class="para"><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 <refspec> (like
+the ones in the examples below) can be configured as the default for
+<tt>git push origin</tt>.</p></div>
+</dd>
+<dt>
+git push origin :
+</dt>
+<dd>
+<p>
+ Push "matching" branches to <tt>origin</tt>. See
+ <refspec> in the <a href="#OPTIONS">OPTIONS</a> section above for a
+ description of "matching" branches.
+</p>
+</dd>
+<dt>
git push origin master
</dt>
<dd>
@@ -883,7 +918,7 @@ by Linus Torvalds <torvalds@osdl.org></p></div> </div>
<div id="footer">
<div id="footer-text">
-Last updated 2009-02-25 09:56:37 UTC
+Last updated 2009-03-18 01:54:22 UTC
</div>
</div>
</body>
|