一、改host
对于需要登陆GitHub账号的情况,可以采用改host的方法
https://github.com/521xueweihan/GitHub520
https://gitee.com/docmirror/dev-sidecar
二、使用cdn(替换host有时候不方便)
使用ghproxy
可以在原网址前面加https://ghproxy.com/
例如
git clone
git clone https://ghproxy.com/https://github.com/521xueweihan/GitHub520.git
wget & curl
wget https://ghproxy.com/https://raw.githubusercontent.com/521xueweihan/GitHub520/main/hosts
自动替换https://github.com.cnpmjs.org
和jsDelivr
在url前加https://gh.api.99988866.xyz/

加速静态文件可以用jsDelivr、staticaly、sevencdn
sevencdn
将原网址
raw.githubusercontent.com
替换为
raw.sevencdn.com
即可,例如:
https://raw.sevencdn.com/imagehosted/images/master/2019/06/20190612115457.png
jsDelivr、staticaly可以使用以下网站替换
https://blog.miankong.top/tools/staticaly.html
https://blog.miankong.top/tools/rawgit.html
Jsdelivr限制单文件小于50M,最近速度也变慢了
Sevencdn限速:
由于滥用,现对 raw.githubusercontents.com 进行限速,策略如下:
- 小于 1M 的文件不限速
- 超过 1M 的文件,超过部分限速 100K/s
若滥用情况继续,则未来采用如下限速策略:- 限速 10K/s
三、使用镜像网站
将https://github.com
换成以下两个网站
四、其他方法
使用gitee转存GitHub后加速文件

网易UU加速(收费)
