summaryrefslogtreecommitdiffstats
path: root/git-push.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-push.html
parentcf5b77307aade1e04785922a4be0f2026cfcec48 (diff)
downloadgit-htmldocs-7df6dcfdb11ce1e05b12d12ef51d8c8d5b4987a5.tar.gz
Autogenerated HTML docs for v1.6.5-rc1
Diffstat (limited to 'git-push.html')
-rw-r--r--git-push.html18
1 files changed, 17 insertions, 1 deletions
diff --git a/git-push.html b/git-push.html
index a43852eaa..0da7abf2b 100644
--- a/git-push.html
+++ b/git-push.html
@@ -626,6 +626,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">
@@ -1008,7 +1024,7 @@ by Linus Torvalds &lt;torvalds@osdl.org&gt;</p></div>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2009-08-13 01:22:27 UTC
+Last updated 2009-09-13 09:50:54 UTC
</div>
</div>
</body>