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

相关推荐
阿斌.com7 小时前
Visual Studio 2026安装全攻略
ide·visual studio
我要神龙摆尾15 小时前
IDEA 阅读插件
java·ide·intellij-idea·idea-plugs·plugs
梦幻通灵18 小时前
IDEA 实用快捷键【持续更新】
java·ide·intellij-idea
Flynt19 小时前
Claude Code 103 秒删掉 4.8 万个文件之后,我把自己的仓库"删"了一遍:git 能救的比你想的少
git·ai编程·claude
csdn2015_21 小时前
git 可以修改已经push上去的commit说明吗
git
风华同学2 天前
vscode远程连接
ide·vscode·编辑器
MinggeQingchun2 天前
Git - 令牌登录
git
sunoo-2292 天前
【嵌入式 ARM 学习第十二天】SPI 裸机驱动 + I2C 触摸屏驱动 + 三大串行协议深度对比
arm开发·笔记·vscode·学习·imx6ull
kiss strong2 天前
idea显示前进后退按钮
java·ide·intellij-idea