首页 > 代码库 > git 配置代理
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)
git 配置代理
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。