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

相关推荐
vortex52 分钟前
Visual Studio 编译选项详解
ide·visual studio
The Straggling Crow36 分钟前
熟练版本控制 (Git)、CI/CD 流程。
git·elasticsearch·ci/cd
记忆偶然1 小时前
语音转文本技术方案评估与工具选型指南
ide·macos·xcode
海绵宝宝_3 小时前
Copilot 一键生成中文 Git Commit Message
git
赵域Phoenix3 小时前
快速打开jupyter
ide·jupyter
孫治AllenSun4 小时前
【Git】分支管理
git
甲虫机4 小时前
git 常用命令
git
安果移不动4 小时前
【Git实战】记录一次分支切换失败的排查:Submodule 脏状态与强制切换
git
还有你Y4 小时前
VScode远程连接docker容器教程
ide·vscode·docker
痕忆丶4 小时前
git 软重置的使用场景git reset --soft HEAD~1
git