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

相关推荐
周杰伦fans23 分钟前
揭开 Visual Studio 缓存文件的神秘面纱:.futdcache.v2 完全解析
ide·visual studio
恋喵大鲤鱼9 小时前
git rebase
git·git rebase
大志哥12314 小时前
idea+git插件+云备份实现项目新分支新建维护
git
恋喵大鲤鱼14 小时前
git merge
git·git merge
码客日记15 小时前
Spring Boot 配置文件敏感信息加密(Jasypt 企业级完整方案)
java·spring boot·git
_codemonster15 小时前
Codex 核心进阶玩法(技能/MCP/派生/分叉/Git/钩子/子智能体)
git
测试开发-学习笔记15 小时前
Android studio安装
android·ide·android studio
逻极15 小时前
Git 从入门到精通:版本控制协作实战指南
git·github·分支管理·版本控制
恋喵大鲤鱼15 小时前
git clean
git·git clean
ABAP-張旺15 小时前
ABAP:Visual Studio Code官方插件安装教程
ide·vscode·编辑器