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

相关推荐
Answer1st7 小时前
【FPGA学习】VSCode 写 Verilog 操作指南(XII)
vscode·学习·fpga开发
ynchyong10 小时前
Git 急救指南:手滑 add / commit 错了,怎么优雅地撤回
git·手滑
Zucker n1 天前
Git 常用命令速查(自用笔记)
git
雪碧聊技术1 天前
Git实战:在Idea中,如何只将分支 A 某次 Commit记录的单个文件同步到分支 B?一文详解|保姆教程
git·文件对比,一键应用
Mortalbreeze1 天前
Git 基础篇(三):分支管理
git
Zucker n1 天前
安装 Git for Windows(自用笔记)
笔记·git
weixin_449173652 天前
vscode附加到已经有的进程
ide·vscode·编辑器
棒子胡豆2 天前
Git总结
git
bkspiderx3 天前
在Visual Studio中安装与配置Qt插件(Qt Visual Studio Tools)
ide·qt·visual studio·qt插件
`流年づ4 天前
联邦学习-安全聚合
git·安全·github