idea、gitbash使用http代理设置

2019-11-13  本文已影响0人  Mint_Grass

idea设置http代理后,可以登录github但无法clone代码。

需要在Git bash中也设置代理

  1. 设置代理

    git config --global http.proxy http://127.0.0.1:1080
    git config --global https.proxy https://127.0.0.1:1080
    
  2. 关闭代理

    git config --global --unset http.proxy
    git config --global --unset https.proxy
    
上一篇下一篇

猜你喜欢

热点阅读