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

相关推荐
leoZ2313 小时前
Git 集成实战完全指南(四):Git 冲突解决
大数据·git·elasticsearch
枫荷9 小时前
Git LFS 大文件优化说明
git
信鸽爱好者9 小时前
VSCode配置python虚拟环境路径
ide·vscode·python
爱吃提升10 小时前
2026最新VSCode 详细下载安装教程+汉化教程(含快捷键与使用趋势)
ide·vscode·编辑器
techdashen10 小时前
不用再反复 stash:用 Git Worktree 同时开发多个分支
大数据·git·elasticsearch
五VV10 小时前
VSCode_Markdown文件中自动公式编号设置的一种方法
ide·vscode·编辑器
leoZ2311 天前
Git 集成实战完全指南(八):团队协作最佳实践
git
晴雨天️1 天前
Git工具使用指南
笔记·git
酷可达拉斯1 天前
Linux操作系统-简单内核优化
linux·git·php
love530love1 天前
【硬核排障 & 猴子补丁 & 幽灵节点】SageAttention GQA 崩溃与 Flash Attention 兼容性修复全记录
ide·人工智能·windows·comfyui·sageattention·windows cuda