git proxy

作者: SWITCH__c801 | 来源:发表于2020-09-22 19:02 被阅读0次
  • http代理
    git config --global https.proxy http://127.0.0.1:10800
    git config --global https.proxy https://127.0.0.1:10800

  • socks5代理
    git config --global http.proxy 'socks5://127.0.0.1:10800'
    git config --global https.proxy 'socks5://127.0.0.1:10800'

  • 查看代理
    git config --global --get http.proxy
    git config --global --get https.proxy

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

相关文章

网友评论

      本文标题:git proxy

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