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

相关推荐
周小码10 小时前
10分钟搭建私有Git服务器:Soft Serve实战
运维·服务器·git
AD钙奶-lalala16 小时前
Android Studio新建项目默认不使用Compose模版
android·ide·android studio
梅塔文·欧帕西安卡琼19 小时前
git的底层原理详解
git
待什么青丝19 小时前
【git的摸鱼技巧】之工欲善其事
git·elasticsearch·搜索引擎
2601_9611940220 小时前
高中英语教资资料推荐|科三大题背诵和教学设计模板
git·开源·github·开源软件·开源协议·ossinsight
ting945200020 小时前
InsForge Backend Branching 后端全链路 Git 式分支技术原理、架构实现与底层源码剖析
人工智能·git·elasticsearch·架构
程序猿阿伟20 小时前
《扣子如何让OpenClaw技能开发提速》
人工智能·git·github
专注VB编程开发20年20 小时前
开发VS2026插件最佳方案:老式VSIX EnvDTE
ide·c#·visual studio
专注VB编程开发20年21 小时前
VS2026最新ide插件VisualStudio.Extensibility进程外 OOP 新模型
ide·c#·visual studio
摇滚侠1 天前
IDEA 创建 Java 项目 推送到远程 Git 仓库
java·git·intellij-idea