path: root/Documentation/urls.txt
diff options
authorLuben Tuikov <>2007-09-01 09:36:31 (GMT)
committerJunio C Hamano <>2007-09-01 10:35:29 (GMT)
commit2e7766655abd0312a6bf4db6a6ff141e7e4ac8b6 (patch)
tree4a30f8f91f641f3b89bdf4204045e6de92df3303 /Documentation/urls.txt
parentc7965afd3dac7b9b6c1d4da27d3757e7d41aa060 (diff)
URL: allow port specification in ssh:// URLs
Allow port specification in ssh:// URLs in the usual notation: ssh://[user@]host.domain[:<port>]/<path> This allows git to be used over ssh-tunneling networks. Signed-off-by: Luben Tuikov <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/urls.txt')
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/urls.txt b/Documentation/urls.txt
index b38145f..e67f914 100644
--- a/Documentation/urls.txt
+++ b/Documentation/urls.txt
@@ -10,6 +10,7 @@ to name the remote repository:
- https://host.xz/path/to/repo.git/
- git://host.xz/path/to/repo.git/
- git://host.xz/~user/path/to/repo.git/
+- ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/
- ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/
- ssh://{startsb}user@{endsb}host.xz/~user/path/to/repo.git/
- ssh://{startsb}user@{endsb}host.xz/~/path/to/repo.git
@@ -18,7 +19,8 @@ to name the remote repository:
SSH is the default transport protocol over the network. You can
optionally specify which user to log-in as, and an alternate,
scp-like syntax is also supported. Both syntaxes support
-username expansion, as does the native git protocol. The following
+username expansion, as does the native git protocol, but
+only the former supports port specification. The following
three are identical to the last three above, respectively: