Git akzeptiert viele verschiedene URL-Formate (z. B. ssh, http, https usw.). Gibt es Spezifikationen/offizielle Dokumente, in denen ich die unterstützten Git-URL-Formate finden kann?
Ich schrieb ein git-URL-Parser und ich möchte sicher sein, dass das, was dort gemacht wird, richtig ist.
Hier auf YonderGit, fand ich die Liste unten. Es ist seitdem nicht vollständig https://<token>:[email protected]/path/to/repo.git
ist nicht da.
Sicheres Shell-Transportprotokoll
ssh://[email protected]:port/path/to/repo.git/
ssh://[email protected]/path/to/repo.git/
ssh://host.xz:port/path/to/repo.git/
ssh://host.xz/path/to/repo.git/
ssh://[email protected]/path/to/repo.git/
ssh://host.xz/path/to/repo.git/
ssh://[email protected]/~user/path/to/repo.git/
ssh://host.xz/~user/path/to/repo.git/
ssh://[email protected]/~/path/to/repo.git
ssh://host.xz/~/path/to/repo.git
[email protected]:/path/to/repo.git/
host.xz:/path/to/repo.git/
[email protected]:~user/path/to/repo.git/
host.xz:~user/path/to/repo.git/
[email protected]:path/to/repo.git
host.xz:path/to/repo.git
rsync://host.xz/path/to/repo.git/
Git-Transportprotokoll
git://host.xz/path/to/repo.git/
git://host.xz/~user/path/to/repo.git/
HTTP/S-Transportprotokoll
http://host.xz/path/to/repo.git/
https://host.xz/path/to/repo.git/
Lokales (Dateisystem) Transportprotokoll
/path/to/repo.git/
path/to/repo.git/
~/path/to/repo.git
file:///path/to/repo.git/
file://~/path/to/repo.git/