Git设置代理和取消代理

2018-04-23  本文已影响0人  sun_kk

本文介绍GIT如何设置代理,以及如何取消代理。

1. 设置代理

命令:

git config --global https.proxy http://127.0.0.1:1080        //http的代理

git config --global https.proxy https://127.0.0.1:1080        //https的代理

2. 取消代理

命令:

git config --global --unset http.proxy

git config --global --unset https.proxy

npm config delete proxy
上一篇 下一篇

猜你喜欢

热点阅读