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

相关推荐
嵌入式软硬件攻城狮7 小时前
3.VSCODE使用方法记录
ide·vscode·编辑器
BLOB_1010018 小时前
关于懒人复制idea项目的坑
java·ide·intellij-idea
YuforiaCode10 小时前
2025版最详细WebStorm下载安装教程(详细图解)
ide·webstorm
不剪发的Tony老师11 小时前
PyScripter:一款免费开源、功能强大的Python开发工具
ide·python
minglie113 小时前
platformio的esp32版的websocketServer
vscode
charlie11451419113 小时前
从 0 开始:在 WSL + VSCode 上利用 Maven 构建 Java Spring Boot 工程
java·笔记·vscode·后端·学习·maven·springboot
Molesidy20 小时前
【VSCode】VSCode的个人习惯设置--个人记录
ide·vscode·编辑器
5***a9751 天前
Git虚拟现实案例
git·vr
牛奔1 天前
git 清理未跟踪文件
git
诗意地回家1 天前
niuhe.conf 配置文件说明
vscode·go