git-设置和取消网络代理

文章导航

      • 1. 查看代理
      • 2. 设置代理
      • 3. 取消代理

1. 查看代理

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

2. 设置代理

git config --global https.proxy [http://127.0.0.1:1080](http://127.0.0.1:1080/)
git config --global https.proxy [https://127.0.0.1:1080](https://127.0.0.1:1080/)

3. 取消代理

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

你可能感兴趣的:(GIT,git,代理)