Csuper Blog

网络是工具,不是玩具...............Good Luck To You!

git clone中断情况 error: RPC failed; result=35, HTTP code = 0 fatal: The remote end hung up un

出现这种git clone中断情况,屡试不爽,还以为是网络问题

$git config --help 翻页到这一看终于懂了。

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.

大致意思是远程便捷HTTP传输请求数据时最大的缓存字节数,默认时1M字节,默认能满足大多数请求。

恰好我这git clone的是个大文件,第一次配置git缓存值,

sudo git config --global http.postBuffer 524288000

还是不行,同样错误,那好,再来个零,5G,看你还行不行!

sudo git config --global http.postBuffer 5242880000

果然,OK了。


发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

«    2024年4月    »
1234567
891011121314
15161718192021
22232425262728
2930
控制面板
您好,欢迎到访网站!
  [查看权限]
网站分类
搜索
最新留言
文章归档
网站收藏
友情链接
    • RainbowSoft Studio Z-Blog
    • 订阅本站的 RSS 2.0 新闻聚合

    Powered By Z-BlogPHP 1.7.3

    Copyright Csuper All Rights Reserved.