What is the git: // protocol?

I checked the ISO OSI diagram where you can see two other git protocols:

https: (this is http over ssl)

and

Ssh

but git is not mentioned : //

Here is the ISO OSI:

https://en.wikipedia.org/wiki/OSI_model

+4
source share
1 answer

git protocol - a special daemon that comes bundled with Git; it listens on a dedicated port (9418), which provides a service similar to the SSH protocol, but without authentication.

It was introduced at the very beginning of Git, in commit 2386d65 (July 2005, Git 0.99.1)

Add the first cut to the git connection logic.

. ssh , TCP , Git.

, Git, . , "git -upload-pack", - .

( ,

"git-upload-pack directoryname\n"

, ).

commit 9b011b2

push-pull Pack.

  • upload-pack (S) | fetch/clone-pack (C):
  • send-pack | receive-pack

daemon Git Documentation/git-daemon.txt.

TCP Git, "DEFAULT_GIT_PORT" aka 9418.
, .

, OSI, 9418 - IANA ( - )

. commit ba8a497 (Setp. 2005, Git 0.99.7a:

[PATCH] IANA

Git (9418) IANA .
.

+3

Source: https://habr.com/ru/post/1616877/


All Articles