Git Proxy Configuration

  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为自己Proxy地址,根据自己情况修改。