| Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1 | GIT URLS[[URLS]] |
| 2 | ---------------- |
| 3 | |
| 4 | One of the following notations can be used |
| 5 | to name the remote repository: |
| 6 | |
| 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/ |
| Junio C Hamano | 7ccb9fd | 2006-07-15 01:38:40 | [diff] [blame] | 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 |
| Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 16 | =============================================================== |
| 17 | |
| Junio C Hamano | 7ccb9fd | 2006-07-15 01:38:40 | [diff] [blame] | 18 | SSH is the default transport protocol. You can optionally specify |
| 19 | which user to log-in as, and an alternate, scp-like syntax is also |
| 20 | supported. Both syntaxes support username expansion, |
| Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 21 | as does the native git protocol. The following three are |
| 22 | identical to the last three above, respectively: |
| 23 | |
| 24 | =============================================================== |
| Junio C Hamano | 7ccb9fd | 2006-07-15 01:38:40 | [diff] [blame] | 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 |
| Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 28 | =============================================================== |
| 29 | |
| 30 | To sync with a local directory, use: |
| 31 | |
| 32 | =============================================================== |
| 33 | - /path/to/repo.git/ |
| 34 | =============================================================== |