Referring to Git Remote Repositories
You can specify git repositories in different ways, depending on the protocol you use.
File System
/path/to/repo.git
file:///path/to/repo.git
Git native protocol
git://example.com/path/to/repo.git
git://example.com/~user/path/to/repo.git
SSH connection
ssh://[user@]example.com[:port]/path/to/repo.git
ssh://[user@]example.com/path/to/repo.git
ssh://[user@]example.com/~user2/path/to/repo.git
ssh://[user@]example.com/~/path/to/repo.git
SSH (short form - no port support)
[user@]example.com:/path/to/repo.git
[user@]example.com:~user/path/to/repo.git
[user@]example.com:path/to/repo.git
HTTP and HTTPS URL variants
http://example.com/path/to/repo.git
https://example.com/path/to/repo.git
rsync protocol (highly discouraged)
rsync://example.com/path/to/repo.git
For more information read the book Version Control with Git ;)
Best,
iss