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

相关推荐
你说我胖?3 小时前
Visual Studio编辑生成exe
ide·visual studio
曦夜日长8 小时前
Git系统篇,Git本地使用(一):从“究极进化版“到三个区域的底层原理
大数据·linux·git·elasticsearch
宵时待雨11 小时前
GIT版本管理2:远程操作与多人协作
git
鬼手点金11 小时前
opencode-rules 插件
java·开发语言·前端·人工智能·chrome·git·github
cgblpx14 小时前
vscode的安装
ide·vscode·编辑器
文祐18 小时前
Windows系统下载pycharm-community-2025.2
ide
csdn2015_19 小时前
git多分支切换修改
git
小巫山云子20 小时前
Git的用法
大数据·git·elasticsearch
开发者联盟league20 小时前
git pull拉取失败UNPROTECTED PRIVATE KEY FILE
git
殷紫川21 小时前
Git Worktree 深度实战:从底层原理到 Java 开发效率翻倍指南
git