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

相关推荐
ALex_zry1 小时前
Git大型仓库推送失败问题解决方案:大文件传输优化指南
git
草莓熊Lotso1 小时前
Git 分支管理:从基础操作到协作流程(本地篇)
大数据·服务器·开发语言·c++·人工智能·git·sql
w***Q3504 小时前
Git工作流自动化
运维·git·自动化
2501_941823068 小时前
强化学习在边缘AI智能控制中的应用与多语言实现实践指南
ide
舒一笑9 小时前
GitPulse:让代码的故事自己讲述
git·程序员·intellij idea
5***o50010 小时前
Git在代码中的GitHub
git·github
还是会想她11 小时前
git 常见命令
git
1***y17813 小时前
Git在发布流程中的自动化标签
运维·git·自动化
a***131415 小时前
vscode配置django环境并创建django项目(全图文操作)
vscode·django·sqlite
YY&DS17 小时前
VSCode Remote SSH 远程 Linux 无法连接
vscode