从GitHub下载速度很慢 [英] Very slow download from GitHub

查看:87
本文介绍了从GitHub下载速度很慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从GitHub克隆存储库时,有时下载速度仅为50-100 KiB/sec(保持稳定),而大多数时候我的下载速度约为10 MiB/sec.从另一台机器(=不同的全局IP)克隆相同的存储库时,我获得了全速.

When cloning a repository from GitHub I sometimes only get a download rate between 50-100 KiB/sec (staying stable) while most of the time I have about 10 MiB/sec. When cloning the same repository from a different machine (= different global IP) I get full speed.

GitHub是否对存储库克隆施加速率限制?有问题的存储库很大(〜100 MiB),我每天大约克隆两次.

Does GitHub impose a rate limit on repository cloning? The repository in question is quite big (~100 MiB) and I clone it about twice a day.

推荐答案

您在回购协议中是否提交了大量二进制文件?可能会做到.

Do you have massive binaries committed in the repos? That might do it.

否则,请考虑优化CI的行为.代替:

Otherwise, look at optimizing your CI's behavior. Instead of:

git submodule update [--recursive]

您想要:

git submodule update [--recursive] --depth 1

CI不需要整个回购历史记录,而只需要目标状态.此处有更多详细信息: Git浅层子模块

CI doesn't need the whole repo history, just the target state. More details here: Git shallow submodules

这篇关于从GitHub下载速度很慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆