本文介绍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
网友评论