]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/urls.txt
connect: accept file:// URL scheme
[thirdparty/git.git] / Documentation / urls.txt
CommitLineData
85a97d4e
BF
1GIT URLS[[URLS]]
2----------------
3
3598a308
BF
4One of the following notations can be used
5to name the remote repository:
85a97d4e 6
3598a308
BF
7===============================================================
8- rsync://host.xz/path/to/repo.git/
9- http://host.xz/path/to/repo.git/
10- https://host.xz/path/to/repo.git/
11- git://host.xz/path/to/repo.git/
12- git://host.xz/~user/path/to/repo.git/
a3e65d74
JF
13- ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/
14- ssh://{startsb}user@{endsb}host.xz/~user/path/to/repo.git/
15- ssh://{startsb}user@{endsb}host.xz/~/path/to/repo.git
3598a308 16===============================================================
85a97d4e 17
a3e65d74
JF
18SSH is the default transport protocol. You can optionally specify
19which user to log-in as, and an alternate, scp-like syntax is also
20supported. Both syntaxes support username expansion,
3598a308
BF
21as does the native git protocol. The following three are
22identical to the last three above, respectively:
85a97d4e 23
3598a308 24===============================================================
a3e65d74
JF
25- {startsb}user@{endsb}host.xz:/path/to/repo.git/
26- {startsb}user@{endsb}host.xz:~user/path/to/repo.git/
27- {startsb}user@{endsb}host.xz:path/to/repo.git
3598a308 28===============================================================
85a97d4e 29
3598a308 30To sync with a local directory, use:
85a97d4e 31
3598a308
BF
32===============================================================
33- /path/to/repo.git/
34===============================================================