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

相关推荐
啊湘1 小时前
vscode 使用 github (适用CURSOR等使用)
ide·vscode·github·cursor·mcp
从此不归路3 小时前
FPGA 结构与 CAD 设计(第3章)下
ide·fpga开发
云堆客栈4 小时前
基于vscode的markdown编辑器部署方案
ide·vscode·编辑器
smileNicky4 小时前
Lombok @Data 在 IDEA 中运行报错解决方案
java·ide·intellij-idea
好大哥呀4 小时前
C++ IDE
开发语言·c++·ide
OpenMiniServer4 小时前
AI + GitLab + VSCode:下一代开发工作流的革命性集成
人工智能·vscode·gitlab
番茄灭世神4 小时前
Git入门使用学习
git·gitee·软件工程·计算机专业入门
dust_and_stars4 小时前
ubuntu24 安装vscode
ide·vscode·编辑器
向上的车轮5 小时前
如何选择Python IDE?
开发语言·ide·python
Destiny_where5 小时前
Claude VSCode插件版接入强大的GLM(无需登录注册claude code)
ide·人工智能·vscode·编辑器·claude code