git clone 或者是vscode clone 时遇到the remote end hung up unexpectedly

复制代码
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

使用git clone总是报错

查看原因有三种可能:要么是缓存不够,要么是网络不行,要么墙的原因。

如果是网络不行,可以配置git的最低速度和最低速度时间:

复制代码
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999

【补充】文件太大的解决方法:

当clone或者push git项目时,文件太大也会出现fatal: The remote end hung up unexpectedly

此时需要修改.gitconfig配置文件,打开终端,执行指令:

git config http.postBuffer 524288000

将postBuffer的缓存设置为500M即可。

参考 https://blog.csdn.net/Cai_deLong/article/details/115255735

相关推荐
weixin_4266892033 分钟前
VSCODE 树莓派C语言开发环境建立
vscode·树莓派
csdn_aspnet37 分钟前
Git贡献全流程拆解:从Fork到PR的完整指南
git·fork·pr
XuDream1 小时前
idea中忽略idea文件不提交git和取消被 Git 追踪
java·git·intellij-idea
飞翔的烤鸡翅1 小时前
Kilo Code在PyCharm上的一些实践
ide·python·pycharm·ai编程·kilo code
程序设计实验室1 小时前
是谁 2026 年还在用 Sublime Text 写代码?
ide
0xCode 小新2 小时前
Git常用操作
git·gitee·github
tiandyoin2 小时前
vscode copilot 的配置文件提示警告
ide·vscode·copilot
0vvv02 小时前
bugku-web-source(git泄露
git·ctf
Molesidy2 小时前
【VSCode】VSCode或者Trae的扩展文件夹以及用户设置文件夹的路径更改到指定位置
ide·编辑器·trae