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

相关推荐
王的宝库9 分钟前
GitLab 常用 Git 命令新手指南
git·学习
这个人懒得名字都没写33 分钟前
PyCharm图像查看器插件PixelLens
ide·python·pycharm
马优晨1 小时前
git restore --source 提交id 和 git reset --hard 提交id 有什么区别
git·git reset·git restore·git回退的区别·git回退代码
小臭希1 小时前
Git(代码版本控制系统)
java·git·github
zhangfeng11332 小时前
vscode 之类的编辑器 ,跳转到某一个函数 方法 是什么快捷键 this->getEbayReturns($shop);
ide·vscode·编辑器
深挖派2 小时前
PhpStorm 2026.1 安装配置与环境搭建 (保姆级图文教程)
ide·phpstorm
ShawnLiaoking2 小时前
vscode 配置环境
ide·vscode·编辑器
弈风千秋万古愁2 小时前
vscode使用markdown+plantuml
vscode·markdown·plantuml
日更嵌入式的打工仔4 小时前
Visual Studio 与 Visual Studio Code 区别
ide·vscode
Unity粉末状在校生11 小时前
Git解决fatal: Could not read from remote repository.的问题
git