https://github.com/dotnetcore/FastGithub

https://ghproxy.com/

https://qu.js.cn/how-to-speed-github/

 

我们同样对 https://raw.githubusercontent.com/ 进行了代理,地址为 https://raw.fastgit.org/

 

免替换法

 
1
git config --global url."https://raw.fastgit.org".insteadOf https://raw.githubusercontent.com

git config --global url."https://hub.fastgit.org".insteadOf https://github.com

直接编辑 ~/.gitconfig 添加:

 
1
2
[url "https://hub.fastgit.org/"]
         insteadOf = https://github.com/

查看git配置信息

 
1
git config --global --list

取消设置

 
1
git config --global --unset url."https://hub.fastgit.org.insteadof"

 

 

 

相关文章: