半亩花草 发表于 2024-11-22 23:25:51

解决 Git The remote end hung up unexpectedly 错误

在 clone 一些较大的项目时,使用 git clone 常常失败。
通过 CSDN 查找原因才知道,有以下三种:缓存原因,网络原因,墙的原因。
https://i-blog.csdnimg.cn/direct/798bdba728a94914b072df327200ea72.png


[*]网络原因:
配置 git 的最低速度和最低速度的时间git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999

[*]缓存原因
将 postBuffer的缓存设置为 500M 即可git config --global http.postBuffer 524288000

[*]配置压缩级别git config --global core.compression -1

我也可以成功 git 下来了
https://i-blog.csdnimg.cn/direct/3ebbcdcafcb748d9a143dc6be428697c.png
参考大佬链接:
解决Git 克隆代码 The remote end hung up unexpectedly错误

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: 解决 Git The remote end hung up unexpectedly 错误