$npx -y skills add volcengine/OpenViking --skill github-proxyGitHub 国内访问加速 skill,使用 githubproxy.cc 代理加速 GitHub 仓库克隆、文件下载、Raw 文件访问等操作。使用场景:(1) 需要 git clone GitHub 仓库时加速,(2) 下载 GitHub Release 文件、Raw 文件、Archive 压缩包时加速,(3) 任何需要访问 GitHub 资源但速度慢的场景
| 1 | # GitHub 国内代理加速 Skill |
| 2 | |
| 3 | 使用 githubproxy.cc 代理服务,为国内访问 GitHub 提供加速支持。 |
| 4 | |
| 5 | ## 代理服务 |
| 6 | |
| 7 | 当前使用的代理服务: |
| 8 | - **主要服务**: githubproxy.cc (测试有效,加速约 3 倍) |
| 9 | - **备用服务**: ghfast.top |
| 10 | |
| 11 | ## 使用方法 |
| 12 | |
| 13 | ### 1. Git Clone 加速 |
| 14 | |
| 15 | 将 GitHub 仓库链接前加上 `https://githubproxy.cc/` 前缀: |
| 16 | |
| 17 | ```bash |
| 18 | # 原始链接 |
| 19 | git clone https://github.com/username/repo.git |
| 20 | |
| 21 | # 加速链接 |
| 22 | git clone https://githubproxy.cc/https://github.com/username/repo.git |
| 23 | ``` |
| 24 | |
| 25 | ### 2. 文件下载加速 |
| 26 | |
| 27 | 支持以下类型的 GitHub 资源加速: |
| 28 | |
| 29 | - **Raw 文件**: `https://raw.githubusercontent.com/...` |
| 30 | - **Release 文件**: 项目发布的附件 |
| 31 | - **Archive 压缩包**: 仓库打包下载 |
| 32 | - **Gist 文件**: `gist.github.com` 或 `gist.githubusercontent.com` |
| 33 | |
| 34 | ```bash |
| 35 | # 原始链接 |
| 36 | wget https://raw.githubusercontent.com/username/repo/main/file.txt |
| 37 | |
| 38 | # 加速链接 |
| 39 | wget https://githubproxy.cc/https://raw.githubusercontent.com/username/repo/main/file.txt |
| 40 | ``` |
| 41 | |
| 42 | ### 3. 使用辅助脚本 |
| 43 | |
| 44 | 使用 `scripts/convert_url.py` 自动转换 GitHub 链接: |
| 45 | |
| 46 | ```bash |
| 47 | python scripts/convert_url.py "https://github.com/username/repo.git" |
| 48 | ``` |
| 49 | |
| 50 | ## 链接转换规则 |
| 51 | |
| 52 | | 原始链接格式 | 转换后格式 | |
| 53 | |-------------|-----------| |
| 54 | | `https://github.com/username/repo.git` | `https://githubproxy.cc/https://github.com/username/repo.git` | |
| 55 | | `https://raw.githubusercontent.com/...` | `https://githubproxy.cc/https://raw.githubusercontent.com/...` | |
| 56 | | `https://github.com/.../releases/download/...` | `https://githubproxy.cc/https://github.com/.../releases/download/...` | |
| 57 | | `https://github.com/.../archive/...` | `https://githubproxy.cc/https://github.com/.../archive/...` | |
| 58 | |
| 59 | ## 注意事项 |
| 60 | |
| 61 | - 本服务仅供学习研究使用,请勿滥用 |
| 62 | - 如果 githubproxy.cc 不可用,请尝试备用服务 ghfast.top |
| 63 | - 不支持 SSH Key 方式的 git clone |
| 64 | - Push、PR、Issue 等操作建议直接使用官方 GitHub 地址 |