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

相关推荐
idcardwang18 小时前
esp32-s3-supermini使用arduio IDE进行mpu6050的数据读取
ide·单片机
fendouweiqian20 小时前
git提交与commitlint规则
git
C.咖.1 天前
Linux环境下——Git 与 GitHub
linux·git·github·远程仓库
杂鱼豆腐人1 天前
pnpm环境下防止误使用npm的方法
前端·git·npm·node.js·git bash
摇滚侠1 天前
GIT版本管理工具轻松入门 | TortoiseGit,Git 介绍软件安装配置,笔记01
笔记·git
山有木兮木有枝_1 天前
“误操作导致 feat 功能未生效,尽管 merge 已完成”
git
百锦再1 天前
第14章 智能指针
android·java·开发语言·git·rust·go·错误
陈老师还在写代码1 天前
android studio 里的 activity 和 layout 是怎么关联上的
android·ide·android studio
摇滚侠1 天前
GIT版本管理工具轻松入门 | TortoiseGit,解决冲突,笔记07
笔记·git
CE贝多芬1 天前
用Microsoft Visual Studio Installer Projects 2022打包程序,同时安装VC++的运行库等
ide·microsoft·visual studio