Git传输协议规范 [英] Git Transfer Protocol Specifications
问题描述
我正在使用 git的传输协议,我只是想知道在我尝试阅读源代码之前是否有详细的规范说明? 解决方案
首先,检查在git仓库中使用git文档(使用良好的grep ,可用即使在Windows上也是如此):
git clone https ://github.com/git/git
cd git / Documentation
grep -nRHIreceive-pack*
这会让你指向:
另外: li> pack-heuristics send-pack
管道
然后您可以完成那些与后端命令相关的文档集:
-
git-http-backend
-
git-receive-pack
-
git-remote-ext
-
git-send-pack
-
gitremote-helpers
查看源代码的一种方法是查看git repo中最近有关转移和传输的变化:
git clone https://github.com/git/git
cd git
git log -Stransfer
看看:
- 提交4bc444 (支持普通FTP上的FTP-over-SSL / TLS)
- 提交daebaa (上传/接收包:允许隐藏ref层次结构)
- commit 745f7a (fetch-pack:move核心代码到libgit.a) commit fe0435
a>(将persistent-https添加到contrib) - ...
- Java: jgit ,及其来源(测试我n
TransportTest.java
,这会降低到:
-
C, libgit2 ,及其
src / transports
来源。 ..等等。
另一种方法是查看其他git实现:
I'm playing around with git's transfer protocols, and I was just wondering if there is some detailed specification for them before I attempt to read the source?
First, check the git documentation in the git repo itself (with a good grep, available even on Windows):
git clone https://github.com/git/git
cd git/Documentation
grep -nRHI "receive-pack" *
That will give you pointers to:
Then you can complete that set of documentation with ones related to the backend commands:
One way at looking at the source is by looking at the recent evolutions around transfer and transport in the git repo:
git clone https://github.com/git/git
cd git
git log -Stransfer
Have a look at:
- commit 4bc444 (Support FTP-over-SSL/TLS for regular FTP)
- commit daebaa (upload/receive-pack: allow hiding ref hierarchies )
- commit 745f7a (fetch-pack: move core code to libgit.a)
- commit fe0435 (Add persistent-https to contrib)
- ...
Another way is to have a look at other implementation of git:
- Java: jgit, and its
Transport.java
source (tested inTransportTest.java
, which declines into:
C, with libgit2, and its
src/transports
sources.... and so on
这篇关于Git传输协议规范的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!