Git¶
如果在使用过程中出现Git Clone失败或非常慢的情况,那么可以使用Git代理。推荐使用: FastGit
FastGit核心使法¶
关于 FastGit 的使用,本质上与 git
有关。常规的面向 GitHub 的 clone
命令可能如下:
git clone https://github.com/author/repo
使用 FastGit 时,可使用如下命令:
git clone https://hub.fastgit.xyz/author/repo
FastGit 仅仅是 GitHub 的代理,所以我们仅需要替换远程地址。
当然,您也可以直接修改 git
的配置,使用 FastGit 替换所有指向 GitHub 的链接:
git config --global url."https://hub.fastgit.xyz/".insteadOf "https://github.com/"
git config protocol.https.allow always
附其他地址的代理:
站源 | 地址 |
---|---|
github.com | hub.fastgit.xyz |
raw.githubusercontent.com | raw.fastgit.org |
github.githubassets.com | assets.fastgit.org |