FastGit (不推荐,经常访问不了)
git clone
关于 FastGit 的使用,本质上与 git 有关。常规的面向 GitHub 的 clone 命令可能如下:
git clone https://github.com/author/repo
使用 FastGit 时,可使用如下命令:
git clone https://hub.fgit.ml/author/repo
正如您所见, FastGit 仅仅是 GitHub 的代理,所以我们仅需要替换远程地址。
当然,您也可以直接修改 git 的配置,使用 FastGit 替换所有指向 GitHub 的链接:
git config --global url."https://hub.fgit.ml/".insteadOf "https://github.com/"
git config protocol.https.allow always
Release 和源码存档的下载
# Release
# 假设下载链接为 https://github.com/A/A/releases/download/1.0/1.0.tar.gz
wget https://download.fastgit.org/A/A/releases/download/1.0/1.0.tar.gz
# Codeload
# 假设下载链接为 https://hub.fgit.ml/A/A/archive/master.zip
# 或者 https://codeload.github.com/A/A/zip/master
wget https://download.fgit.ml/A/A/archive/master.zip
对于 raw 的代理
我们同样对 https://raw.githubusercontent.com/
进行了代理,地址为 https://raw.fgit.ml/
。
反代列表
站源 | 地址 | 缓存 |
github.com | hub.fastgit.org | 无 |
raw.githubusercontent.com | raw.fastgit.org | 无 |
github.githubassets.com | assets.fastgit.org | 无 |
customer-stories-feed.github.com | customer-stories-feed.fastgit.org | 480 分钟 |
Github Download | download.fastgit.org | 480 分钟 |
GitHub Archive | archive.fastgit.org | 无 |