git使用代理加速github下载

一般代理提供的服务,只要在原本仓库的url前加上代理域名就行了,可以通过git config替换url,自动代理
假设域名代理为gitproxy.com

#git config --global url."https://gitproxy.com/github.com/".insteadof "https://github.com/"

git clone等操作时,还是使用原本的url,会自动替换加上代理

posted on 2022-05-26 14:41  zlyang  阅读(766)  评论(0编辑  收藏  举报

导航