加载中...

Github使用方法


一、改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换成以下两个网站

https://github.com.cnpmjs.org
https://hub.fastgit.org

四、其他方法

使用gitee转存GitHub后加速文件

https://gitee.com/

网易UU加速(收费)

https://uu.163.com/


文章作者: Muryor
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Muryor !
评论
  目录