Use the githubproxy.cc proxy service to provide acceleration support for accessing GitHub from China.
Proxy Service
Currently used proxy service:
- Main Service: githubproxy.cc (tested and working, approximately 3x acceleration)
- Backup Service: ghfast.top
Usage
1. Git Clone Acceleration
Add before the GitHub repository link https://githubproxy.cc/ prefix:
# 原始链接
git clone https://github.com/username/repo.git
Accelerated Link
git clone https://githubproxy.cc/https://github.com/username/repo.git
### 2. 文件下载加速
支持以下类型的 GitHub 资源加速:
- **Raw 文件**: `https://raw.githubusercontent.com/...`
- **Release 文件**: 项目发布的附件
- **Archive 压缩包**: 仓库打包下载
- **Gist 文件**: `gist.github.com` 或 `gist.githubusercontent.com`
```bash
# 原始链接
wget https://raw.githubusercontent.com/username/repo/main/file.txt
# 加速链接
wget https://githubproxy.cc/https://raw.githubusercontent.com/username/repo/main/file.txt
3. Use Auxiliary Script
Use scripts/convert_url.py to automatically convert GitHub links:
python scripts/convert_url.py "https://github.com/username/repo.git"
Link Conversion Rules
| Original Link Format | Converted Format |
|---|---|
https://github.com/username/repo.git |
https://githubproxy.cc/https://github.com/username/repo.git |
https://raw.githubusercontent.com/... |
https://githubproxy.cc/https://raw.githubusercontent.com/... |
https://github.com/.../releases/download/... |
https://githubproxy.cc/https://github.com/.../releases/download/... |
https://github.com/.../archive/... |
https://githubproxy.cc/https://github.com/.../archive/... |
Notes
- This service is for learning and research purposes only, please do not abuse it
- If githubproxy.cc is unavailable, please try the backup service ghfast.top
- git clone via SSH Key is not supported
- For operations such as Push, PR, and Issue, it is recommended to use the official GitHub address directly