gh-proxy on Cloudflare Workers
GitHub 反向代理:加速 release、raw、gist、api 及 git clone 等请求,文件经 Cloudflare 边缘节点缓存中转。
输入后即时转换:支持省略协议、自动纠正 blob 页面链接与重复的 https://
使用方法
在任意 GitHub 资源链接前拼接本站地址即可(协议可省略):
https://ghproxy.totootao.top/https://github.com/user/repo/releases/download/v1.0/app.zip https://ghproxy.totootao.top/github.com/user/repo/archive/refs/heads/main.tar.gz https://ghproxy.totootao.top/https://raw.githubusercontent.com/user/repo/main/README.md
仓库文件页链接(blob)也可以直接使用,会自动转为 raw 文件地址:
https://ghproxy.totootao.top/https://github.com/user/repo/blob/main/README.md
加速 git clone
git clone https://ghproxy.totootao.top/https://github.com/user/repo.git git clone https://ghproxy.totootao.top/https://github.com/user/repo.git --depth=1
支持的上游
github.com与全部子域(apiREST API、uploads资产上传、codeload源码包、gist等)——路径不限;blob文件页自动转 raw 直链*.githubusercontent.com全系:raw、objects/release-assets(资产下载)、avatars、camo、media(LFS)、actions等github-cloud.s3.amazonaws.com(release 资产 S3 直存,重定向目标)api.cloudflare.com(Cloudflare REST API;带认证的 API 请求不走缓存)