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

相关推荐
CounterGlew5115 分钟前
Vscode通过ssh链接autodl云服务器并配置codex
运维·服务器·vscode
女神下凡42 分钟前
PyCharm 2026破解激活
ide·python·pycharm
谁刺我心42 分钟前
【vscode问题】远程remote cpptools导致linux板子cpu爆炸问题
ide·vscode·编辑器
lingran__1 小时前
Git 完全指南(三):远程仓库与标签管理
开发语言·git·gitee·ssh·团队协作·远程仓库·分布式版本控制
lingran__16 小时前
Git 完全指南(二):分支管理
git·分支管理·版本控制·团队协作·多人开发·git flow
LaughingZhu18 小时前
Product Hunt 每日热榜 | 2026-09-02
java·ide·intellij-idea
必须会一定会18 小时前
Agent Handoff v0.6.0 跨电脑同步:Git、EVENTS.jsonl、CONTEXT.md 使用方法
人工智能·git·ai编程
进击的蜗牛Eric18 小时前
VSCode Server手动安装指南(简洁版)
vscode
小芒果_0120 小时前
从0到1,将pycharm上的项目上传到github
ide·pycharm·github
cui_hao_nan1 天前
Git常用命令1
运维·git