关于git拉代码遇到的问题

2019-10-17  本文已影响0人  Mondo_杰

1.错误如下

error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

网上查询了一下,主要说的就是:

由于大文件造成的提交或者拉取失败的

于是,我做了如下操作:

a、增大缓存配置,因为项目据说有900多M,我设置为1个G的缓存。结果无效

git config http.postBuffer 1048576000
git config https.postBuffer 1048576000

b,修改低速度限制,低速时间,依旧无效

git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999

c,只拉取最后一次提交,不拉取历史版本,依旧无效

git clone https://github.com/***.git --depth 1

d,将https地址换成ssh地址来clone,结果依旧

偶尔会出现如下错误:

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

尝试使用以下代码解决,依旧无效,又回到上述错误了。

git clone https://git.***** ~/.cocoapods/repos/maste

ps:我估计是网络太慢的原因,在下载的时候,10kb左右的速度。等我找个好点的宽带或者找个VPN再试试。崩溃ing

搞了几天,发现是公司网速原因,使用手机4G,成功!

上一篇下一篇

猜你喜欢

热点阅读