git 配置代理

1、目的:配置proxy,使得git可以克隆github上的代码

2、方法:执行下面三条命令,配置下git的代理

git config --global https.proxy https://w00284248:PWD@proxycn2.xxx.com:8080
git config --global http.proxy http://w00284248:PWD@proxycn2.xxx.com:8080
git config --global http.sslVerify false

3、注意事项:

如果你的密码含有特殊字符(如@),需要转义下,具体方法可以参照:

比如你的密码是  1@23,则只需要在chrome浏览器的控制台里执行:

encodeURIComponent(1@23)

原文地址:https://www.cnblogs.com/bonelee/p/6795341.html