
github 代理加速或 CDN 加速
·
# 设置代理
git config --global http.https://github.com.proxy socks5://127.0.0.1:1086
# 取消代理
git config --global --unset http.https://github.com.proxy
如果没有代理也不要急,有专门的cdn加速:
git config --global url."https://github.com.cnpmjs.org".insteadOf "https://github.com"
git config --global url."https://ghproxy.com/https://github.com".insteadOf "https://github.com"
git config --global url."https://hub.fastgit.xyz/".insteadOf "https://github.com/"
更多推荐
所有评论(0)