diff options
author | Junio C Hamano <junio@hera.kernel.org> | 2008-02-28 00:27:44 +0000 |
---|---|---|
committer | Junio C Hamano <junio@hera.kernel.org> | 2008-02-28 00:27:44 +0000 |
commit | 24bc09a2408f779de87b173b93386f5d1cbeee34 (patch) | |
tree | fed4584ad7fba36e609ec2ad9eed33fc9aee2c1d /git-fetch.html | |
parent | 69f491759956153218a1ac862629c439a194d865 (diff) | |
download | git-htmldocs-24bc09a2408f779de87b173b93386f5d1cbeee34.tar.gz |
Autogenerated HTML docs for v1.5.4.3-325-g6d21
Diffstat (limited to 'git-fetch.html')
-rw-r--r-- | git-fetch.html | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/git-fetch.html b/git-fetch.html index 5b7174aaa..a9c34389e 100644 --- a/git-fetch.html +++ b/git-fetch.html @@ -594,6 +594,24 @@ file:///path/to/repo.git/ </div></div>
<p>They are mostly equivalent, except when cloning. See
<a href="git-clone.html">git-clone(1)</a> for details.</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 "<actual url base>"]
+ insteadOf = <other url base></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>REMOTES</h2>
<div class="sectionbody">
@@ -663,7 +681,7 @@ Junio C Hamano <junkio@cox.net></p> </div>
<div id="footer">
<div id="footer-text">
-Last updated 27-Jan-2008 08:23:28 UTC
+Last updated 28-Feb-2008 00:25:41 UTC
</div>
</div>
</body>
|