#教程#使用CloudflareWorkers加速Github release、archive

作者: MJJ 分类: 科普文章 发布时间: 2020-09-02 19:29

使用国内的云服务器时,对于Github是极其不友好的,经常无法连接上,raw.githubusercontent.com域名也是已经凉凉,git clone能连上的时候也是龟速。

所幸,发现了这一款工具,用过之后感觉浑身舒爽。

演示:

eaaa.PNG

Demo:https://git.haoduck.cf

建议是自己搭建一个,自己搭建比较稳定,Cloudflare Workers免费套餐的每天10万请求数是绰绰有余的。如果只是偶尔用用,直接用这个也无妨。

使用方法:

1、加速下载文件

打开https://git.haoduck.cf(搭建好的网站),然后输入要加速的链接(release文件等)

2. 加速clone

git clone https://github.com/username/xxx.git

换成

git clone https://git.haoduck.cf/github.com/username/xxx.git

更多详见:https://github.com/hunshcn/gh-proxy

Cloudflare Workers代码https://raw.githubusercontent.com/hunshcn/gh-proxy/master/index.js

 

作者:嗷嗷

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注