AdrianHu99 / NOTES

0 stars 0 forks source link

git wire protocol v2 #9

Closed AdrianHu99 closed 6 years ago

AdrianHu99 commented 6 years ago

https://opensource.googleblog.com/2018/05/introducing-git-protocol-version-2.html

AdrianHu99 commented 6 years ago

git fetch was improved a lot.

Prior to protocol v2, servers responded to all fetch commands with an initial reference advertisement, listing all references in the repository.

e.g.: git fetch origin master. For repositories that contain 100s of thousands of references (the Chromium repository has over 500k branches and tags) the server could end up sending 10s of megabytes of data that get ignored.