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

相关推荐
来自内蒙古的田园蒙牛11 小时前
WebStorm 接入 Ollama:使用 Qwen2.5-Coder 在本地运行 AI 编程助手
ide·人工智能·webstorm
程序员爱德华12 小时前
VSCode git/gerrit解冲突
git·vscode·gerrit
leoZ23121 小时前
Git 集成实战完全指南(二):智能分支管理
大数据·git·elasticsearch
疏狂难除1 天前
JetBrains IDE插件开发教程(五)——File Header
ide·kotlin
qq_452396231 天前
第六篇:《GitLab CI 进阶:多环境部署与环境变量管理》
git·ci/cd·gitlab
有想法的py工程师1 天前
GPG 密钥迁移指南:多私钥备份、批量导入与自动信任
git·github
浮江雾1 天前
Flutter第五节------Flutter开发环境配置与项目创建指南
开发语言·前端·git·学习·flutter·入门·函数
harmful_sheep1 天前
idea相关设置
java·ide·intellij-idea
aramae1 天前
C++11:现代C++的里程碑
c语言·开发语言·c++·windows·git·后端
蓝冰凌1 天前
vscode 用户级 settings.json
ide·vscode·json