美文网首页
GIT设置和取消http代理, 取消https代理

GIT设置和取消http代理, 取消https代理

作者: PHP的点滴 | 来源:发表于2021-07-22 17:30 被阅读0次

    为git设置http代理, https代理

    #http代理
    git config --global http.proxy 'socks5://127.0.0.1:1080'
    #https代理
    git config --global https.proxy 'socks5://127.0.0.1:1080'
    

    可以使用 git config -l查看代理

    取消http代理, 取消https代理

    #取消http代理
    git config --global --unset http.proxy
    #取消https代理
    git config --global --unset https.proxy
    

    相关文章

      网友评论

          本文标题:GIT设置和取消http代理, 取消https代理

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