美文网首页
idea、gitbash使用http代理设置

idea、gitbash使用http代理设置

作者: Mint_Grass | 来源:发表于2019-11-13 19:14 被阅读0次

    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
      

    相关文章

      网友评论

          本文标题:idea、gitbash使用http代理设置

          本文链接:https://www.haomeiwen.com/subject/sdykictx.html