path: root/Documentation/urls.txt
diff options
Diffstat (limited to 'Documentation/urls.txt')
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/urls.txt b/Documentation/urls.txt
index 5355ebc..d813ceb 100644
--- a/Documentation/urls.txt
+++ b/Documentation/urls.txt
@@ -67,3 +67,21 @@ For example, with this:
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://".
+If you want to rewrite URLs for push only, you can create a
+configuration section of the form:
+ [url "<actual url base>"]
+ pushInsteadOf = <other url base>
+For example, with this:
+ [url "ssh://"]
+ pushInsteadOf = git://
+a URL like "git://" will be rewritten to
+"ssh://" for pushes, but pulls will still
+use the original URL.