git 代理

  • 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
    

      

 
 

posted on 2022-09-28 08:49  lxxd  阅读(28)  评论(0)    收藏  举报

导航