summaryrefslogtreecommitdiffstats
path: root/git-remote.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2007-03-01 01:24:56 +0000
committerJunio C Hamano <junio@hera.kernel.org>2007-03-01 01:24:56 +0000
commit6ac2f147aa1e6774a32f6ed56a833ef7f08f9871 (patch)
tree296a72f98c7ecf0a372fe59a17e75179bdb33fe3 /git-remote.html
parentdb911ee731950adff42ed5f6bec37c095e6f16a3 (diff)
downloadgit-htmldocs-6ac2f147aa1e6774a32f6ed56a833ef7f08f9871.tar.gz
Autogenerated HTML docs for v1.5.0.2-260-g2eb065
Diffstat (limited to 'git-remote.html')
-rw-r--r--git-remote.html25
1 files changed, 22 insertions, 3 deletions
diff --git a/git-remote.html b/git-remote.html
index ae6be1373..ad4330507 100644
--- a/git-remote.html
+++ b/git-remote.html
@@ -274,7 +274,7 @@ git-remote(1) Manual Page
<div class="sectionbody">
<div class="verseblock">
<div class="content"><em>git-remote</em>
-<em>git-remote</em> add &lt;name&gt; &lt;url&gt;
+<em>git-remote</em> add [-t &lt;branch&gt;] [-m &lt;branch&gt;] [-f] &lt;name&gt; &lt;url&gt;
<em>git-remote</em> show &lt;name&gt;
<em>git-remote</em> prune &lt;name&gt;
<em>git-remote</em> update [group]</div></div>
@@ -350,7 +350,11 @@ be updated. (See <a href="git-config.html">git-config(1)</a>).
</div>
<h2>Examples</h2>
<div class="sectionbody">
-<p>Add a new remote, fetch, and check out a branch from it:</p>
+<ul>
+<li>
+<p>
+Add a new remote, fetch, and check out a branch from it
+</p>
<div class="listingblock">
<div class="content">
<pre><tt>$ git remote
@@ -370,6 +374,21 @@ linux-nfs/master
$ git checkout -b nfs linux-nfs/master
...</tt></pre>
</div></div>
+</li>
+<li>
+<p>
+Imitate <em>git clone</em> but track only selected branches
+</p>
+<div class="listingblock">
+<div class="content">
+<pre><tt>$ mkdir project.git
+$ cd project.git
+$ git init
+$ git remote add -f -t master -m master origin git://example.com/git.git/
+$ git merge origin</tt></pre>
+</div></div>
+</li>
+</ul>
</div>
<h2>See Also</h2>
<div class="sectionbody">
@@ -391,7 +410,7 @@ $ git checkout -b nfs linux-nfs/master
</div>
<div id="footer">
<div id="footer-text">
-Last updated 26-Feb-2007 09:50:09 UTC
+Last updated 01-Mar-2007 01:24:43 UTC
</div>
</div>
</body>