summaryrefslogtreecommitdiffstats
path: root/git-fetch.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2009-09-13 09:51:17 +0000
committerJunio C Hamano <junio@hera.kernel.org>2009-09-13 09:51:17 +0000
commit7df6dcfdb11ce1e05b12d12ef51d8c8d5b4987a5 (patch)
tree30798fca0bc4c90bb9437215bdcebdbdea6a8b6d /git-fetch.html
parentcf5b77307aade1e04785922a4be0f2026cfcec48 (diff)
downloadgit-htmldocs-7df6dcfdb11ce1e05b12d12ef51d8c8d5b4987a5.tar.gz
Autogenerated HTML docs for v1.6.5-rc1
Diffstat (limited to 'git-fetch.html')
-rw-r--r--git-fetch.html18
1 files changed, 17 insertions, 1 deletions
diff --git a/git-fetch.html b/git-fetch.html
index e201d70ae..631d1d7a8 100644
--- a/git-fetch.html
+++ b/git-fetch.html
@@ -685,6 +685,22 @@ configuration section of the form:</p></div>
</div></div>
<div class="para"><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>
+<div class="para"><p>If you want to rewrite URLs for push only, you can create a
+configuration section of the form:</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><tt> [url "&lt;actual url base&gt;"]
+ pushInsteadOf = &lt;other url base&gt;</tt></pre>
+</div></div>
+<div class="para"><p>For example, with this:</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><tt> [url "ssh://example.org/"]
+ pushInsteadOf = git://example.org/</tt></pre>
+</div></div>
+<div class="para"><p>a URL like "git://example.org/path/to/repo.git" will be rewritten to
+"ssh://example.org/path/to/repo.git" for pushes, but pulls will still
+use the original URL.</p></div>
</div>
<h2 id="_remotes_a_id_remotes_a">REMOTES<a id="REMOTES"></a></h2>
<div class="sectionbody">
@@ -789,7 +805,7 @@ Junio C Hamano &lt;gitster@pobox.com&gt;</p></div>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2009-09-08 00:54:59 UTC
+Last updated 2009-09-13 09:50:53 UTC
</div>
</div>
</body>