git设置HTTP代理
2017-12-29 本文已影响0人
夸克星
配置全局代理
git config --global http.proxy [ip]:[port]
git config --global https.proxy [ip]:[port]
如果代理需要验证
git config –global http.proxy http://[user]:[password]@[ip]:[port]
git config –global https.proxy https://[user]:[password]@[ip]:[port]
这样只能使用https 协议