git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
git config --global https.proxy https://proxyuser:proxypwd@proxy.server.com:8080
git config --global http.sslVerify false

禁用代理

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

检查当前代理

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

参考资料

相关文章:

  • 2021-12-06
  • 2021-06-04
  • 2022-12-23
猜你喜欢
  • 2022-02-08
  • 2022-12-23
  • 2021-04-09
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案