您好,欢迎光临! 推荐您使用Chrome浏览器访问本站。

偶遇 fatal: early EOF fatal…git clone error: RPC failed; result=56, HTTP code = 200

由于项目组要统一使用版本控制软件,原来用Git 需要改为sourcetree,结果在clone遇到如下错误:

fatal: early EOF fatal: The remote end hung up unexpectedly fatal

……

git clone error: RPC failed; result=56, HTTP code = 200

 

通过搜索,有网友说在C:\Program Files (x86)\Git\etc\gitconfig,core项加

[core] 
compression = -1

试过不成功。


core.compression

An integer -1..9, indicating a default compression level. -1 is the zlib default. 0 means no compression, and 1..9 are various speed/size tradeoffs, 9 being slowest. If set, this provides a default to other compression variables, such as core.loosecompression and pack.compression. – From Git Manpage
compression 是压缩的意思,从 clone 的终端输出就知道,服务器会压缩目标文件,然后传输到客户端,客户端再解压。取值为 [-1, 9],-1 以 zlib 为默认压缩库,0 表示不进行压缩,1..9 是压缩速度与最终获得文件大小的不同程度的权衡,数字越大,压缩越慢,当然得到的文件会越小。



继续搜索:

git config --global http.postBuffer 524288000(尽量大) 
http.postBuffer

Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests.

还是不行。

 

折腾了几个小时,结果翻墙一路畅通。

 


您可能也喜欢