git配置代理

2020-10-08  本文已影响0人  MrBaoquan

http(s) 代理配置

设置
git config --global https.proxy http://127.0.0.1:代理端口
git config --global https.proxy https://127.0.0.1:代理端口

取消设置
git config --global --unset http.proxy
git config --global --unset https.proxy

SSH代理配置

Host github.com
  ProxyCommand connect -S 127.0.0.1:代理端口 %h %p
上一篇 下一篇

猜你喜欢

热点阅读