github 同步 代理设置

发布于:2020-03-09 16:21:53 更新于:2020-06-03 18:55:23

全局设置

git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080

只代理github

git config --global http.https://github.com.proxy https://127.0.0.1:1080
git config --global https.https://github.com.proxy https://127.0.0.1:1080

sock5 代理

git config --global http.https://github.com.proxy socks5://127.0.0.1:1086
git config --global https.https://github.com.proxy socks5://127.0.0.1:1086

取消代理

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

查看已有配置

git config --global -l

评论 0

还没有评论,来抢沙发吧~