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

相关推荐
链诸葛6 分钟前
Claude Code 推荐指南(一):安装、CLI使用、VSCode 集成
ide·vscode·ai·编辑器·claude
xiaobobo33306 分钟前
vscode直接导入工程遇到的语法提示问题(问题窗口有错误)
vscode·结构体语法不提示·问题窗口存在问题
小沐°9 分钟前
cursor、vscode软件语言切换为中文的方式
ide·vscode·编辑器
lishutong100612 分钟前
Android 性能诊断 V2:基于 Agent Skill 的原生 IDE 融合架构
android·ide·架构
无限进步_18 分钟前
【C++】反转字符串的进阶技巧:每隔k个字符反转k个
java·开发语言·c++·git·算法·github·visual studio
Rabbit_QL8 小时前
【Git 报错处理】`remote origin already exists` 是什么意思?
git
陈佬昔没带相机11 小时前
GitHub clone 不动、pip 卡住、brew 转圈?一份指南搞定
git·npm
CoovallyAIHub14 小时前
15K Star中文首发!$5部署一个会自我进化的私人Agent——NousResearch开源Hermes Agent
git·架构·github
无限进步_15 小时前
【C++】巧用静态变量与构造函数:一种非常规的求和实现
开发语言·c++·git·算法·leetcode·github·visual studio
降临-max16 小时前
Git 协同开发与冲突解决
笔记·git