GitHub加速下载
2024/2/21...大约 2 分钟
GitHub加速下载
在Linux上下载GitHub文件太慢了,直接受不了。于是我做了一个用于加速 GitHub 文件下载速度的代理服务,基于 Cloudflare 运行,可以加速 Releases、源码包、仓库文件、Raw、Gist 的下载以及 git clone。
主要功能
- 加速 Releases 文件下载,支持断点续传
- 加速分支 / Tag 源码包(zip、tar.gz)下载
- 加速仓库单个文件下载(
blob链接会自动转为原始文件) - 加速 raw.githubusercontent.com 和 gist.githubusercontent.com 文件下载
- 加速 codeload.github.com 下载
- 支持
git clone整个仓库
如何使用
网页使用(推荐)
- 打开 https://github.geekery.cn/
- 把 GitHub 链接粘贴到输入框,链接带不带
https://都可以 - 点击「下载」直接下载,或点击「复制链接」拿到加速链接;仓库地址还可以点击「复制 git clone」
加速链接有有效期
为了防止滥用,加速链接中间带有一段会定期更换的 token,格式如下:
https://github.geekery.cn/<token>/<原始GitHub链接>页面上会显示当前链接的有效时间,并且会自动更新。链接过期后会返回 404,重新打开网页复制一次即可。
旧格式 https://github.geekery.cn/https://github.com/...(不带 token)已经不能用了。
支持的链接
把下面任意一种链接粘贴到网页输入框即可:
Release 文件
https://github.com/user/repo/releases/download/v1.0.0/app.zip分支源码
https://github.com/user/repo/archive/refs/heads/main.zipTag 源码
https://github.com/user/repo/archive/v1.0.0.tar.gz仓库文件
https://github.com/user/repo/blob/main/README.mdRaw
https://raw.githubusercontent.com/user/repo/main/README.mdGist
https://gist.githubusercontent.com/user/gist-id/raw/file.txtgit clone
https://github.com/user/repo提示
不支持下载整个文件夹,需要整个仓库请使用 git clone。
在命令行或脚本中使用
token 会定期更换,脚本里不要写死链接,可以先从 /token 接口获取当前 token,再拼接下载地址:
TOKEN=$(curl -s https://github.geekery.cn/token | grep -o '"token":"[^"]*"' | cut -d'"' -f4)
# 下载 Release 文件
curl -LO "https://github.geekery.cn/${TOKEN}/https://github.com/user/repo/releases/download/v1.0.0/app.zip"
# 克隆仓库
git clone "https://github.geekery.cn/${TOKEN}/https://github.com/user/repo"联系我
如果您有任何问题或建议,请随时评论区联系我。仅供学习使用,非法使用必追究法律责任!
更新日志
2026/10/10 15:40
查看所有更新日志
ffada-于d2baf-于e784f-于d861a-于37e23-于4a81e-于