<div class="sectionbody">\r
<div class="verseblock">\r
<div class="content"><em>git-clone</em> [-l [-s]] [-q] [-n] [--bare] [-o <name>] [-u <upload-pack>]\r
+ [--reference <repository>]\r
<repository> [<directory>]</div></div>\r
</div>\r
<h2>DESCRIPTION</h2>\r
<p>\r
When the repository to clone is on the local machine,\r
instead of using hard links, automatically setup\r
- .git/objects/info/alternatives to share the objects\r
+ .git/objects/info/alternates to share the objects\r
with the source repository. The resulting repository\r
starts out without any object of its own.\r
</p>\r
</dd>\r
<dt>\r
+--reference <repository>\r
+</dt>\r
+<dd>\r
+<p>\r
+ If the reference repository is on the local machine\r
+ automatically setup .git/objects/info/alternates to\r
+ obtain objects from the reference repository. Using\r
+ an already existing repository as an alternate will\r
+ require less objects to be copied from the repository\r
+ being cloned, reducing network and local storage costs.\r
+</p>\r
+</dd>\r
+<dt>\r
--quiet\r
</dt>\r
<dt>\r
</div></div>\r
</dd>\r
<dt>\r
+Clone from upstream while borrowing from an existing local directory\r
+</dt>\r
+<dd>\r
+<div class="listingblock">\r
+<div class="content">\r
+<pre><tt>$ git clone --reference my2.6 \\r
+ git://git.kernel.org/pub/scm/.../linux-2.7 \\r
+ my2.7\r
+$ cd my2.7</tt></pre>\r
+</div></div>\r
+</dd>\r
+<dt>\r
Create a bare repository to publish your changes to the public\r
</dt>\r
<dd>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 10-Mar-2006 00:31:23 UTC\r
+Last updated 19-Apr-2006 09:44:08 UTC\r
</div>\r
</div>\r
</body>\r
--------
[verse]
'git-clone' [-l [-s]] [-q] [-n] [--bare] [-o <name>] [-u <upload-pack>]
+ [--reference <repository>]
<repository> [<directory>]
DESCRIPTION
-s::
When the repository to clone is on the local machine,
instead of using hard links, automatically setup
- .git/objects/info/alternatives to share the objects
+ .git/objects/info/alternates to share the objects
with the source repository. The resulting repository
starts out without any object of its own.
+--reference <repository>::
+ If the reference repository is on the local machine
+ automatically setup .git/objects/info/alternates to
+ obtain objects from the reference repository. Using
+ an already existing repository as an alternate will
+ require less objects to be copied from the repository
+ being cloned, reducing network and local storage costs.
+
--quiet::
-q::
Operate quietly. This flag is passed to "rsync" and
------------
+Clone from upstream while borrowing from an existing local directory::
++
+------------
+$ git clone --reference my2.6 \
+ git://git.kernel.org/pub/scm/.../linux-2.7 \
+ my2.7
+$ cd my2.7
+------------
+
+
Create a bare repository to publish your changes to the public::
+
------------