]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/urls.txt
Use ALLOC_GROW in remote.{c,h}
[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/
2e776665 13- ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/
a3e65d74
JF
14- ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/
15- ssh://{startsb}user@{endsb}host.xz/~user/path/to/repo.git/
16- ssh://{startsb}user@{endsb}host.xz/~/path/to/repo.git
3598a308 17===============================================================
85a97d4e 18
3d5c418f
JH
19SSH is the default transport protocol over the network. You can
20optionally specify which user to log-in as, and an alternate,
21scp-like syntax is also supported. Both syntaxes support
2e776665
LT
22username expansion, as does the native git protocol, but
23only the former supports port specification. The following
3d5c418f 24three are identical to the last three above, respectively:
85a97d4e 25
3598a308 26===============================================================
a3e65d74
JF
27- {startsb}user@{endsb}host.xz:/path/to/repo.git/
28- {startsb}user@{endsb}host.xz:~user/path/to/repo.git/
29- {startsb}user@{endsb}host.xz:path/to/repo.git
3598a308 30===============================================================
85a97d4e 31
3d5c418f 32To sync with a local directory, you can use:
85a97d4e 33
3598a308
BF
34===============================================================
35- /path/to/repo.git/
3d5c418f 36- file:///path/to/repo.git/
3598a308 37===============================================================
3d5c418f 38
347989f4 39ifndef::git-clone[]
3d5c418f 40They are mostly equivalent, except when cloning. See
5162e697 41linkgit:git-clone[1] for details.
347989f4
SO
42endif::git-clone[]
43
44ifdef::git-clone[]
45They are equivalent, except the former implies --local option.
46endif::git-clone[]