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

相关推荐
charlie11451419119 小时前
Git团队协作完全入门指南(上)
笔记·git·学习·教程·工程
迷茫的启明星19 小时前
Git命令学习
git·学习
JavaEdge.19 小时前
IDEA卡死没反应的全部解决方案
java·ide·intellij-idea
wanzhong23331 天前
解决vscode在win下使用cuda无法跳转库函数的问题
ide·vscode·编辑器·cuda·高性能计算
云和数据.ChenGuang1 天前
运维工程师技术教程之Pull Requests(PR)
运维·分布式·git·数据库运维工程师·运维教程
何小义的AI进阶路1 天前
win下 vscode下 C++和opencv的配置与使用
c++·图像处理·vscode·opencv
好好学习O(∩_∩)O1 天前
Git快速复习(基础指令篇)
git
Franklin1 天前
如何解决git HEAD detached 分离头指针问题
git·python·pycharm
one-ccs1 天前
git 多分支工作流
git
weixin_404679311 天前
vscode 配置cpp调试环境
数据库·ide·vscode·编辑器