码迷,mamicode.com
首页 > 其他好文 > 详细

git 配置代理

时间:2017-05-02 13:40:30      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:file   huawei   method   转义   hub   false   als   密码   mail   

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)

git 配置代理

标签:file   huawei   method   转义   hub   false   als   密码   mail   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!