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

相关推荐
大山同学43 分钟前
DeepSeek-TUI:1M 上下文、递归子代理与 Git 沙箱回滚
git
Peter·Pan爱编程1 小时前
第六篇:VS Code + Continue 插件:开源爱好者的低成本高自由度方案
ide·开源·ai编程
HoneyMoose2 小时前
执行 git svn clone --stdlayout 命令无输出
git·svn
Thanks_ks3 小时前
【第 002 讲】Python 标准开发环境搭建:运行环境 | 环境变量 | IDE 部署 | 配置优化
ide·python·pycharm·开发工具·环境配置·环境变量·编程基础
HoneyMoose3 小时前
把 SVN 仓库转换为 Git 需要的 2 个命令
git·svn
白云LDC12 小时前
Android Studio新建Vecter asset一直显示Loading icons(转圈圈)的解决办法
android·ide·android studio
An_s13 小时前
编辑器AI工具(vscode+claude)
ide·vscode·编辑器
历程里程碑14 小时前
4 Git远程协作:从零开始,玩转仓库关联与代码同步(带实操代码讲解)
大数据·c++·git·elasticsearch·搜索引擎·gitee·github
千百元16 小时前
VScode怎么切中文菜单
vscode
金銀銅鐵16 小时前
[git] 浅解 git reset 命令
git·后端