美文网首页
为git设置网络代理

为git设置网络代理

作者: 水门 | 来源:发表于2019-02-18 17:59 被阅读386次

    设置http、https代理

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

    查看http、https代理配置情况

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

    取消http、https代理配置

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

    相关文章

      网友评论

          本文标题:为git设置网络代理

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