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

相关推荐
前端双越老师4 分钟前
3 个命令 7 个步骤,学会 git worktree 并行开发
git·ai编程·全栈
西门吹牛14 分钟前
Pycharm编译器中部署了pyqt5,Qtdesigner无法打开了,解决方案
ide·qt·pycharm
#君君#31 分钟前
ros2 下VSCode 中显示波浪线(找不到定义)原因
ide·vscode·编辑器
芋头莎莎35 分钟前
ESP32 +VSCode与搭建开发环境教程
vscode·单片机
大黄说说36 分钟前
匹配表达式 vs. Switch语句:现代PHP中的条件逻辑重构
android·ide·android studio
ycjunhua1 小时前
windows 安装 Claude Code
ide·windows
小黑要努力14 小时前
智能音箱遇到的问题(一)
linux·运维·git
RePeaT15 小时前
【git】指令场景实战:单分支与多分支协作流程
git
HeeRiver16 小时前
VSCode调用deepseek-v4-pro/flash api的方法
ide·vscode·api·deepseek-v4
前端Hardy16 小时前
杀疯了!Git 2.54 正式发布,3个封神新特性,效率直接翻倍!
git