为git设置网络代理【转】

原文:https://www.jianshu.com/p/426f8e42b1f5

设置http、https代理

git config --global http.proxy socks5://127.0.0.1:10808
git config --global https.proxy socks5://127.0.0.1:10808

查看http、https代理配置情况

git config --global --get http.proxy
git config --global --get https.proxy

取消http、https代理配置

git config --global --unset http.proxy
git config --global --unset https.proxy
posted @ 2020-12-07 20:41  静俭阁主  阅读(94)  评论(0编辑  收藏  举报