Autogenerated HTML docs for v1.3.2-gfd60a
[git.git] / git-push.html
index 52a5642..68be21f 100644 (file)
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\r
 <head>\r
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r
-<meta name="generator" content="AsciiDoc 7.0.1" />\r
+<meta name="generator" content="AsciiDoc 7.0.2" />\r
 <style type="text/css">\r
 /* Debug borders */\r
 p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {\r
@@ -266,19 +266,19 @@ git-push(1) Manual Page
 <h2>NAME</h2>\r
 <div class="sectionbody">\r
 <p>git-push -\r
-   Update remote refs along with associated objects.\r
+   Update remote refs along with associated objects\r
 </p>\r
 </div>\r
 </div>\r
 <h2>SYNOPSIS</h2>\r
 <div class="sectionbody">\r
-<p><em>git-push</em> [--all] [--force] &lt;repository&gt; &lt;refspec&gt;&#8230;</p>\r
+<p><em>git-push</em> [--all] [--tags] [--force] &lt;repository&gt; &lt;refspec&gt;&#8230;</p>\r
 </div>\r
 <h2>DESCRIPTION</h2>\r
 <div class="sectionbody">\r
 <p>Updates remote refs using local refs, while sending objects\r
 necessary to complete the given refs.</p>\r
-<p>You can make "interesting" things to happen on the repository\r
+<p>You can make interesting things happen to a repository\r
 every time you push into it, by setting up <em>hooks</em> there.  See\r
 documentation for <a href="git-receive-pack.html">git-receive-pack(1)</a>.</p>\r
 </div>\r
@@ -290,11 +290,85 @@ documentation for <a href="git-receive-pack.html">git-receive-pack(1)</a>.</p>
 </dt>\r
 <dd>\r
 <p>\r
-        The "remote" repository that is the source of a fetch\r
-        or pull operation, or the destination of a push operation.\r
-        One of the following notations can be used\r
-        to name the remote repository:\r
+        The "remote" repository that is destination of a push\r
+        operation.  See the section <a href="#URLS">GIT URLS</a> below.\r
 </p>\r
+</dd>\r
+<dt>\r
+&lt;refspec&gt;\r
+</dt>\r
+<dd>\r
+<p>\r
+        The canonical format of a &lt;refspec&gt; parameter is\r
+        <tt>+?&lt;src&gt;:&lt;dst&gt;</tt>; that is, an optional plus <tt>+</tt>, followed\r
+        by the source ref, followed by a colon <tt>:</tt>, followed by\r
+        the destination ref.\r
+</p>\r
+<p>The &lt;src&gt; side can be an\r
+arbitrary "SHA1 expression" that can be used as an\r
+argument to <tt>git-cat-file -t</tt>.  E.g. <tt>master~4</tt> (push\r
+four parents before the current master head).</p>\r
+<p>The local ref that matches &lt;src&gt; is used\r
+to fast forward the remote ref that matches &lt;dst&gt;.  If\r
+the optional plus <tt>+</tt> is used, the remote ref is updated\r
+even if it does not result in a fast forward update.</p>\r
+<p>Note: If no explicit refspec is found, (that is neither\r
+on the command line nor in any Push line of the\r
+corresponding remotes file---see below), then all the\r
+refs that exist both on the local side and on the remote\r
+side are updated.</p>\r
+<p>Some short-cut notations are also supported.</p>\r
+<ul>\r
+<li>\r
+<p>\r
+<tt>tag &lt;tag&gt;</tt> means the same as <tt>refs/tags/&lt;tag&gt;:refs/tags/&lt;tag&gt;</tt>.\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+A parameter &lt;ref&gt; without a colon is equivalent to\r
+  &lt;ref&gt;<tt>:</tt>&lt;ref&gt;, hence updates &lt;ref&gt; in the destination from &lt;ref&gt;\r
+  in the source.\r
+</p>\r
+</li>\r
+</ul>\r
+</dd>\r
+<dt>\r
+--all\r
+</dt>\r
+<dd>\r
+<p>\r
+        Instead of naming each ref to push, specifies that all\r
+        refs be pushed.\r
+</p>\r
+</dd>\r
+<dt>\r
+--tags\r
+</dt>\r
+<dd>\r
+<p>\r
+        All refs under <tt>$GIT_DIR/refs/tags</tt> are pushed, in\r
+        addition to refspecs explicitly listed on the command\r
+        line.\r
+</p>\r
+</dd>\r
+<dt>\r
+-f, --force\r
+</dt>\r
+<dd>\r
+<p>\r
+        Usually, the command refuses to update a remote ref that is\r
+        not a descendent of the local ref used to overwrite it.\r
+        This flag disables the check.  This can cause the\r
+        remote repository to lose commits; use it with care.\r
+</p>\r
+</dd>\r
+</dl>\r
+</div>\r
+<h2>GIT URLS<a id="URLS"></a></h2>\r
+<div class="sectionbody">\r
+<p>One of the following notations can be used\r
+to name the remote repository:</p>\r
 <div class="exampleblock">\r
 <div class="exampleblock-content">\r
 <ul>\r
@@ -375,6 +449,9 @@ host.xz:path/to/repo.git
 </li>\r
 </ul>\r
 </div></div>\r
+</div>\r
+<h2>REMOTES</h2>\r
+<div class="sectionbody">\r
 <p>In addition to the above, as a short-hand, the name of a\r
 file in <tt>$GIT_DIR/remotes</tt> directory can be given; the\r
 named file should be in the following format:</p>\r
@@ -384,7 +461,7 @@ named file should be in the following format:</p>
 Push: &lt;refspec&gt;\r
 Pull: &lt;refspec&gt;</tt></pre>\r
 </div></div>\r
-<p>When such a short-hand is specified in place of\r
+<p>Then such a short-hand is specified in place of\r
 &lt;repository&gt; without &lt;refspec&gt; parameters on the command\r
 line, &lt;refspec&gt; specified on <tt>Push:</tt> lines or <tt>Pull:</tt>\r
 lines are used for <tt>git-push</tt> and <tt>git-fetch</tt>/<tt>git-pull</tt>,\r
@@ -409,131 +486,6 @@ Pull: refs/heads/master:&lt;remote&gt;</tt></pre>
 <pre><tt>URL: &lt;url&gt;\r
 Pull: refs/heads/&lt;head&gt;:&lt;remote&gt;</tt></pre>\r
 </div></div>\r
-</dd>\r
-<dt>\r
-&lt;refspec&gt;\r
-</dt>\r
-<dd>\r
-<p>\r
-        The canonical format of a &lt;refspec&gt; parameter is\r
-        <tt>+?&lt;src&gt;:&lt;dst&gt;</tt>; that is, an optional plus <tt>+</tt>, followed\r
-        by the source ref, followed by a colon <tt>:</tt>, followed by\r
-        the destination ref.\r
-</p>\r
-<p>When used in <tt>git-push</tt>, the &lt;src&gt; side can be an\r
-arbitrary "SHA1 expression" that can be used as an\r
-argument to <tt>git-cat-file -t</tt>.  E.g. <tt>master~4</tt> (push\r
-four parents before the current master head).</p>\r
-<p>For <tt>git-push</tt>, the local ref that matches &lt;src&gt; is used\r
-to fast forward the remote ref that matches &lt;dst&gt;.  If\r
-the optional plus <tt>+</tt> is used, the remote ref is updated\r
-even if it does not result in a fast forward update.</p>\r
-<p>For <tt>git-fetch</tt> and <tt>git-pull</tt>, the remote ref that matches &lt;src&gt;\r
-is fetched, and if &lt;dst&gt; is not empty string, the local\r
-ref that matches it is fast forwarded using &lt;src&gt;.\r
-Again, if the optional plus <tt>+</tt> is used, the local ref\r
-is updated even if it does not result in a fast forward\r
-update.</p>\r
-<div class="admonitionblock">\r
-<table><tr>\r
-<td class="icon">\r
-<div class="title">Note</div>\r
-</td>\r
-<td class="content">If the remote branch from which you want to pull is\r
-modified in non-linear ways such as being rewound and\r
-rebased frequently, then a pull will attempt a merge with\r
-an older version of itself, likely conflict, and fail.\r
-It is under these conditions that you would want to use\r
-the <tt>+</tt> sign to indicate non-fast-forward updates will\r
-be needed.  There is currently no easy way to determine\r
-or declare that a branch will be made available in a\r
-repository with this behavior; the pulling user simply\r
-must know this is the expected usage pattern for a branch.</td>\r
-</tr></table>\r
-</div>\r
-<div class="admonitionblock">\r
-<table><tr>\r
-<td class="icon">\r
-<div class="title">Note</div>\r
-</td>\r
-<td class="content">You never do your own development on branches that appear\r
-on the right hand side of a &lt;refspec&gt; colon on <tt>Pull:</tt> lines;\r
-they are to be updated by <tt>git-fetch</tt>.  If you intend to do\r
-development derived from a remote branch <tt>B</tt>, have a <tt>Pull:</tt>\r
-line to track it (i.e. <tt>Pull: B:remote-B</tt>), and have a separate\r
-branch <tt>my-B</tt> to do your development on top of it.  The latter\r
-is created by <tt>git branch my-B remote-B</tt> (or its equivalent <tt>git\r
-checkout -b my-B remote-B</tt>).  Run <tt>git fetch</tt> to keep track of\r
-the progress of the remote side, and when you see something new\r
-on the remote branch, merge it into your development branch with\r
-<tt>git pull . remote-B</tt>, while you are on <tt>my-B</tt> branch.\r
-The common <tt>Pull: master:origin</tt> mapping of a remote <tt>master</tt>\r
-branch to a local <tt>origin</tt> branch, which is then merged to a\r
-local development branch, again typically named <tt>master</tt>, is made\r
-when you run <tt>git clone</tt> for you to follow this pattern.</td>\r
-</tr></table>\r
-</div>\r
-<div class="admonitionblock">\r
-<table><tr>\r
-<td class="icon">\r
-<div class="title">Note</div>\r
-</td>\r
-<td class="content">There is a difference between listing multiple &lt;refspec&gt;\r
-directly on <tt>git-pull</tt> command line and having multiple\r
-<tt>Pull:</tt> &lt;refspec&gt; lines for a &lt;repository&gt; and running\r
-<tt>git-pull</tt> command without any explicit &lt;refspec&gt; parameters.\r
-&lt;refspec&gt; listed explicitly on the command line are always\r
-merged into the current branch after fetching.  In other words,\r
-if you list more than one remote refs, you would be making\r
-an Octopus.  While <tt>git-pull</tt> run without any explicit &lt;refspec&gt;\r
-parameter takes default &lt;refspec&gt;s from <tt>Pull:</tt> lines, it\r
-merges only the first &lt;refspec&gt; found into the current branch,\r
-after fetching all the remote refs.  This is because making an\r
-Octopus from remote refs is rarely done, while keeping track\r
-of multiple remote heads in one-go by fetching more than one\r
-is often useful.</td>\r
-</tr></table>\r
-</div>\r
-<p>Some short-cut notations are also supported.</p>\r
-<ul>\r
-<li>\r
-<p>\r
-<tt>tag &lt;tag&gt;</tt> means the same as <tt>refs/tags/&lt;tag&gt;:refs/tags/&lt;tag&gt;</tt>;\r
-  used with pull or fetch, it requests fetching everything up to\r
-  the given tag.\r
-</p>\r
-</li>\r
-<li>\r
-<p>\r
-A parameter &lt;ref&gt; without a colon is equivalent to\r
-  &lt;ref&gt;: when pulling/fetching, and &lt;ref&gt;<tt>:</tt>&lt;ref&gt; when\r
-  pushing.  That is, do not store it locally if\r
-  fetching, and update the same name if pushing.\r
-</p>\r
-</li>\r
-</ul>\r
-</dd>\r
-<dt>\r
---all\r
-</dt>\r
-<dd>\r
-<p>\r
-        Instead of naming each ref to push, specifies all refs\r
-        to be pushed.\r
-</p>\r
-</dd>\r
-<dt>\r
--f, --force\r
-</dt>\r
-<dd>\r
-<p>\r
-        Usually, the command refuses to update a local ref that is\r
-        not an ancestor of the remote ref used to overwrite it.\r
-        This flag disables the check.  What this means is that the\r
-        local repository can lose commits; use it with care.\r
-</p>\r
-</dd>\r
-</dl>\r
 </div>\r
 <h2>Author</h2>\r
 <div class="sectionbody">\r
@@ -549,7 +501,7 @@ A parameter &lt;ref&gt; without a colon is equivalent to
 </div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 13-Jan-2006 19:58:29 PDT\r
+Last updated 10-Mar-2006 00:31:32 UTC\r
 </div>\r
 </div>\r
 </body>\r