path: root/Documentation/urls-remotes.txt
diff options
authorMichael J Gruber <>2009-06-09 16:01:34 (GMT)
committerJunio C Hamano <>2009-06-10 06:46:47 (GMT)
commit203462347fce0eab563fe77640648a7e8ae64d3b (patch)
treed5cc723473be92132fd19e120b721f461a14c9ed /Documentation/urls-remotes.txt
parentf4f78e668dd40f2d4a5bc119cccb3c34c2675c38 (diff)
Allow push and fetch urls to be different
This introduces a config setting remote.$remotename.pushurl which is used for pushes only. If absent remote.$remotename.url is used for pushes and fetches as before. This is useful, for example, in order to do passwordless fetches (remote update) over the git transport but pushes over ssh. Signed-off-by: Michael J Gruber <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/urls-remotes.txt')
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/urls-remotes.txt b/Documentation/urls-remotes.txt
index 41ec777..2a0e7b8 100644
--- a/Documentation/urls-remotes.txt
+++ b/Documentation/urls-remotes.txt
@@ -27,10 +27,13 @@ config file would appear like this:
[remote "<name>"]
url = <url>
+ pushurl = <pushurl>
push = <refspec>
fetch = <refspec>
+The `<pushurl>` is used for pushes only. It is optional and defaults
+to `<url>`.
Named file in `$GIT_DIR/remotes`