summaryrefslogtreecommitdiffstats
path: root/git-clone.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2008-02-28 00:27:44 +0000
committerJunio C Hamano <junio@hera.kernel.org>2008-02-28 00:27:44 +0000
commit24bc09a2408f779de87b173b93386f5d1cbeee34 (patch)
treefed4584ad7fba36e609ec2ad9eed33fc9aee2c1d /git-clone.html
parent69f491759956153218a1ac862629c439a194d865 (diff)
downloadgit-htmldocs-24bc09a2408f779de87b173b93386f5d1cbeee34.tar.gz
Autogenerated HTML docs for v1.5.4.3-325-g6d21
Diffstat (limited to 'git-clone.html')
-rw-r--r--git-clone.html20
1 files changed, 19 insertions, 1 deletions
diff --git a/git-clone.html b/git-clone.html
index 737769d39..958f9776c 100644
--- a/git-clone.html
+++ b/git-clone.html
@@ -573,6 +573,24 @@ file:///path/to/repo.git/
</ul>
</div></div>
<p>They are equivalent, except the former implies --local option.</p>
+<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
+use will be rewritten into URLs that work), you can create a
+configuration section of the form:</p>
+<div class="listingblock">
+<div class="content">
+<pre><tt> [url "&lt;actual url base&gt;"]
+ insteadOf = &lt;other url base&gt;</tt></pre>
+</div></div>
+<p>For example, with this:</p>
+<div class="listingblock">
+<div class="content">
+<pre><tt> [url "git://git.host.xz/"]
+ insteadOf = host.xz:/path/to/
+ insteadOf = work:</tt></pre>
+</div></div>
+<p>a URL like "work:repo.git" or like "host.xz:/path/to/repo.git" will be
+rewritten in any context that takes a URL to be "git://git.host.xz/repo.git".</p>
</div>
<h2>Examples</h2>
<div class="sectionbody">
@@ -646,7 +664,7 @@ Create a repository on the kernel.org machine that borrows from Linus
</div>
<div id="footer">
<div id="footer-text">
-Last updated 14-Feb-2008 00:51:07 UTC
+Last updated 28-Feb-2008 00:25:37 UTC
</div>
</div>
</body>