← posts

Git代理配置与取消代理

Git代理配置与取消代理
  1. 查看是否配置代理

    git config --global http.proxy
    
  2. 配置代理

    git config --global http.proxy http://127.0.0.1:10809
    git config --global https.proxy http://127.0.0.1:10809	
    
  3. 取消代理

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

注意:http://127.0.0.1:10809为自己代理地址,根据自己情况修改。

On this page

评论