gh-proxy on Cloudflare Workers
GitHub 反向代理,加速 release、archive、raw、gist 及 git clone 等请求,文件经 Cloudflare 边缘节点缓存中转。
使用方法
在任意 GitHub 资源链接前拼接本站地址即可(协议可省略):
https://https://ghproxy.totootao.top/https://github.com/user/repo/releases/download/v1.0/app.zip https://https://ghproxy.totootao.top/github.com/user/repo/archive/refs/heads/main.tar.gz https://https://ghproxy.totootao.top/https://raw.githubusercontent.com/user/repo/main/README.md
仓库文件页链接(blob)也可以直接使用,会自动转为 raw 文件地址:
https://https://ghproxy.totootao.top/https://github.com/user/repo/blob/main/README.md
加速 git clone
git clone https://https://ghproxy.totootao.top/https://github.com/user/repo.git git clone https://https://ghproxy.totootao.top/https://github.com/user/repo.git --depth=1
支持的上游
github.com的releases、archive路径及 git Smart HTTP(克隆)raw.githubusercontent.com、gist.githubusercontent.comcodeload.github.com(zip / tar.gz 源码包)objects.githubusercontent.com等 release 资产域名,以及avatars、camo图片域名