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 小时前
javaScript基础(8个案例+代码+效果图)
开发语言·前端·javascript·vscode·css3·html5
int WINGsssss8 小时前
Git使用
git
用户0760530354389 小时前
Git Revert:安全移除错误提交的方式
git
菜鸟一皓9 小时前
IDEA的lombok插件不生效了?!!
java·ide·intellij-idea
satan–010 小时前
R语言的下载、安装及环境配置(Rstudio&VSCode)
开发语言·windows·vscode·r语言
Good_Starry21 小时前
Git介绍--github/gitee/gitlab使用
git·gitee·gitlab·github
嵌入式小能手1 天前
开发环境搭建之VScode的安装及使用
vscode·编辑器
云端奇趣1 天前
探索 3 个有趣的 GitHub 学习资源库
经验分享·git·学习·github
N1cez1 天前
vscode 连接服务器 不用输密码 免密登录
服务器·vscode
yufei-coder1 天前
C# Windows 窗体开发基础
vscode·microsoft·c#·visual studio