GitHub 加速完整文档与使用规范
把原始 GitHub 链接拼接到加速域名之后即可加速访问,无需安装任何客户端。本文档覆盖五类资源的写法与常用工具示例。
快速开始
在首页粘贴任意 GitHub 链接,点击「转换链接」即可得到加速地址;也可以直接在浏览器里按下面的规则手动拼接。
- 复制原始 GitHub 链接,例如
https://github.com/owner/repo/releases/download/v1.0/app.zip - 在链接前面加上本站域名与一个斜杠,例如
https://你的加速域名/https://github.com/owner/repo/... - 浏览器、下载工具、git 客户端都可以直接使用这个新地址
链接写法
本站同时支持三种写法,选一种习惯的即可,效果完全一致。
| 写法 | 示例 | 说明 |
|---|---|---|
| 域名 + 原始链接 | https://加速域名/https://github.com/owner/repo |
与主流加速站一致,最通用 |
/gh/ 前缀 |
https://加速域名/gh/github.com/owner/repo |
省去一个 https://,链接更短 |
| 裸域名拼接 | https://加速域名/raw.githubusercontent.com/owner/repo/main/README.md |
首段必须是 GitHub 官方域名 |
| 裸仓库(克隆专用) | https://加速域名/owner/repo.git |
最短的克隆地址写法 |
支持加速的域名包括:github.com、api.github.com、raw.githubusercontent.com、codeload.github.com、gist.github.com、gist.githubusercontent.com、objects.githubusercontent.com、release-assets.githubusercontent.com 等 GitHub 官方域名。
五类资源
1. Release 资产包
用于下载 Release 页面里的安装包,支持断点续传与多线程下载。
原始:https://github.com/owner/repo/releases/download/v1.0/app.zip 加速:https://加速域名/https://github.com/owner/repo/releases/download/v1.0/app.zip
2. Raw 原始文件
用于查看或下载仓库中的单个文件,常见于配置文件、安装脚本。
原始:https://raw.githubusercontent.com/owner/repo/main/install.sh 加速:https://加速域名/https://raw.githubusercontent.com/owner/repo/main/install.sh
3. Archive 源码包
分支或标签的 zip / tar.gz 源码包。
原始:https://github.com/owner/repo/archive/refs/heads/main.zip 加速:https://加速域名/https://github.com/owner/repo/archive/refs/heads/main.zip
4. Gist 代码片段
代码片段页面与原始文件均可加速,页面内的 GitHub 绝对链接会自动改写为加速地址。
页面:https://加速域名/https://gist.github.com/owner/gistid 原文:https://加速域名/https://gist.githubusercontent.com/owner/gistid/raw/file.txt
5. Git 克隆与拉取
克隆、浅克隆、增量拉取都支持,仅支持只读操作,推送请求会被拒绝。
git clone https://加速域名/owner/repo.git git clone --depth=1 https://加速域名/owner/repo.git git remote set-url origin https://加速域名/owner/repo.git
常用工具
# wget:断点续传 wget -c https://加速域名/https://github.com/owner/repo/releases/download/v1.0/app.zip # curl:跟随重定向,输出到文件 curl -fL -O https://加速域名/https://github.com/owner/repo/releases/download/v1.0/app.zip # curl:直接执行安装脚本 curl -fsSL https://加速域名/https://raw.githubusercontent.com/owner/repo/main/install.sh | bash # aria2:多线程下载 aria2c -x16 -s16 https://加速域名/https://github.com/owner/repo/releases/download/v1.0/app.zip
版本解析
在首页粘贴仓库主页链接(例如 https://github.com/owner/repo),页面会自动解析该仓库的 Release 版本、资产体积、下载次数,并为每个文件生成多线路下载按钮。
解析能力也可以通过接口直接使用,便于接入自己的脚本或工具:
GET /api/releases?repo=owner/repo GET /api/nodes GET /__probe GET /api/health
常见问题
优先使用绑定自定义域名的线路。部署在 workers.dev 子域上的服务在大陆的可访问性不稳定,绑定自己的域名后会明显改善;页面顶部的线路测速会自动选择当前最快的线路。
解析依赖 GitHub 官方接口,匿名调用按出口 IP 限流(每小时 60 次)。服务端已对结果做缓存,也可以配置令牌把配额提升到每小时 5000 次。
不支持。本站只代理公开资源,不会接收也不会转发任何账号凭据。
GitHub 的源码包(archive)由上游决定是否支持分段下载,部分压缩包会一次性返回完整内容。Release 资产包通常都支持断点续传。
使用支持续传的客户端重新下载即可:wget -c、curl -C -、aria2c -c 都会从中断处继续,不会重复下载已经完成的部分。
可以。页面会并发探测所有已配置线路的延迟,转换链接与下载按钮会自动使用当前最快的线路。
使用规范
- 本服务定位是公开开源代码的下载加速,请勿用于代理账号操作、私有仓库访问或任何违法违规内容
- 禁止使用自动化脚本高频请求,服务端对单 IP 设有请求频率限制
- 登录、注册、会话、GraphQL 等账号相关路径会被直接拒绝,这是为了保护你的账号安全
- 请遵守 GitHub 服务条款以及你所在地区的法律法规