summaryrefslogtreecommitdiffstats
path: root/git-clone.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2010-03-22 01:47:35 +0000
committerJunio C Hamano <junio@kernel.org>2010-03-22 01:47:35 +0000
commit9ccf664de57a05c6417f1fe46f6c6b55322f218c (patch)
tree98e19fbc06782490d2909ed5555b49aed5e83b27 /git-clone.html
parent0299d92c0447b72142f40f7b12f912d028b61c53 (diff)
downloadgit-htmldocs-9ccf664de57a05c6417f1fe46f6c6b55322f218c.tar.gz
Autogenerated HTML docs for v1.7.0.3-254-g4503b
Diffstat (limited to 'git-clone.html')
-rw-r--r--git-clone.html65
1 files changed, 28 insertions, 37 deletions
diff --git a/git-clone.html b/git-clone.html
index 2a643b61f..9a544e0bf 100644
--- a/git-clone.html
+++ b/git-clone.html
@@ -598,8 +598,6 @@ objects from the source repository into a pack in the cloned repository.</p></di
<div class="sectionbody">
<div class="para"><p>One of the following notations can be used
to name the remote repository:</p></div>
-<div class="exampleblock">
-<div class="exampleblock-content">
<div class="ilist"><ul>
<li>
<p>
@@ -647,15 +645,12 @@ ssh://&#91;user@&#93;host.xz/~/path/to/repo.git
</p>
</li>
</ul></div>
-</div></div>
<div class="para"><p>SSH is the default transport protocol over the network. You can
optionally specify which user to log-in as, and an alternate,
scp-like syntax is also supported. Both syntaxes support
username expansion, as does the native git protocol, but
only the former supports port specification. The following
three are identical to the last three above, respectively:</p></div>
-<div class="exampleblock">
-<div class="exampleblock-content">
<div class="ilist"><ul>
<li>
<p>
@@ -673,10 +668,7 @@ three are identical to the last three above, respectively:</p></div>
</p>
</li>
</ul></div>
-</div></div>
<div class="para"><p>To sync with a local directory, you can use:</p></div>
-<div class="exampleblock">
-<div class="exampleblock-content">
<div class="ilist"><ul>
<li>
<p>
@@ -689,7 +681,6 @@ file:///path/to/repo.git/
</p>
</li>
</ul></div>
-</div></div>
<div class="para"><p>They are equivalent, except the former implies --local option.</p></div>
<div class="para"><p>If there are a large number of similarly-named remote repositories and
you want to use a different format for them (such that the URLs you
@@ -728,33 +719,33 @@ use the original URL.</p></div>
</div>
<h2 id="_examples">Examples</h2>
<div class="sectionbody">
-<div class="vlist"><dl>
-<dt>
-Clone from upstream
-</dt>
-<dd>
+<div class="ilist"><ul>
+<li>
+<p>
+Clone from upstream:
+</p>
<div class="listingblock">
<div class="content">
<pre><tt>$ git clone git://git.kernel.org/pub/scm/.../linux-2.6 my2.6
$ cd my2.6
$ make</tt></pre>
</div></div>
-</dd>
-<dt>
-Make a local clone that borrows from the current directory, without checking things out
-</dt>
-<dd>
+</li>
+<li>
+<p>
+Make a local clone that borrows from the current directory, without checking things out:
+</p>
<div class="listingblock">
<div class="content">
<pre><tt>$ git clone -l -s -n . ../copy
$ cd ../copy
$ git show-branch</tt></pre>
</div></div>
-</dd>
-<dt>
-Clone from upstream while borrowing from an existing local directory
-</dt>
-<dd>
+</li>
+<li>
+<p>
+Clone from upstream while borrowing from an existing local directory:
+</p>
<div class="listingblock">
<div class="content">
<pre><tt>$ git clone --reference my2.6 \
@@ -762,27 +753,27 @@ Clone from upstream while borrowing from an existing local directory
my2.7
$ cd my2.7</tt></pre>
</div></div>
-</dd>
-<dt>
-Create a bare repository to publish your changes to the public
-</dt>
-<dd>
+</li>
+<li>
+<p>
+Create a bare repository to publish your changes to the public:
+</p>
<div class="listingblock">
<div class="content">
<pre><tt>$ git clone --bare -l /home/proj/.git /pub/scm/proj.git</tt></pre>
</div></div>
-</dd>
-<dt>
-Create a repository on the kernel.org machine that borrows from Linus
-</dt>
-<dd>
+</li>
+<li>
+<p>
+Create a repository on the kernel.org machine that borrows from Linus:
+</p>
<div class="listingblock">
<div class="content">
<pre><tt>$ git clone --bare -l -s /pub/scm/.../torvalds/linux-2.6.git \
/pub/scm/.../me/subsys-2.6.git</tt></pre>
</div></div>
-</dd>
-</dl></div>
+</li>
+</ul></div>
</div>
<h2 id="_author">Author</h2>
<div class="sectionbody">
@@ -798,7 +789,7 @@ Create a repository on the kernel.org machine that borrows from Linus
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2010-03-15 20:32:30 UTC
+Last updated 2010-03-22 01:47:14 UTC
</div>
</div>
</body>