git克隆报错The remote end hung up unexpectedly

git克隆错误:

fatal: The remote end hung up unexpectedly

原因可能是网速慢,文件大。可以尝试以下措施:

将Http缓存设置大一些,比如1G:

git config --global http.postBuffer 1048576000,或者3G 3194304000

设置git最低速度


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

不知道你这个问题是否已经解决, 如果还没有解决的话:
  • 建议你看下这篇博客👉 :【repo/git小技巧】repo sync时报错“The remote end hung up unexpectedly”解决办法
  • 除此之外, 这篇博客: git报错the remote end hung up unexpectedlyMiB解决方法中的 git报错the remote end hung up unexpectedlyMiB解决方法 部分也许能够解决你的问题, 你可以仔细阅读以下内容或者直接跳转源博客中阅读:

    原文地址:

    http://blog.tachmiao.com/?id=98

    在公司可能因为网络波动的原因,使用git总是down了一半多就报错:

    fatal: the remote end hung up unexpectedlyMiB | 8.00 KiB/s
    fatal: early EOF
    fatal: index-pack failed
    

    在网上找到了解决办法,如下:

    修改git配置:

    //httpBuffer加大
    git config --global http.postBuffer 524288000
    //压缩配置
    git config --global core.compression -1
    //修改配置文件
    export GIT_TRACE_PACKET=1
    export GIT_TRACE=1
    export GIT_CURL_VERBOSE=1
    

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^