Referring to Git Remote Repositories
You can specify git repositories in different ways, depending on the protocol you use.
File System
/path/to/repo.gitfile:///path/to/repo.git
Git native protocol
git://example.com/path/to/repo.gitgit://example.com/~user/path/to/repo.git
SSH connection
ssh://[user@]example.com[:port]/path/to/repo.gitssh://[user@]example.com/path/to/repo.gitssh://[user@]example.com/~user2/path/to/repo.gitssh://[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.githttps://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