赞
踩
- git config --global http.proxy http://代理服务器地址:端口号
-
- git config --global https.proxy https://代理服务器地址:端口号
如果有用户名密码按照下面命令配置
- git config --global http.proxy http://用户名:密码@代理服务器地址:端口号
-
- git config --global https.proxy https://用户名:密码@代理服务器地址:端口号
取消代理
- git config --global --unset http.proxy
-
- git config --global --unset https.proxy
查看配置列表
git config --list
git config --global --edit
打开配置界面如下
- [http]
-
- proxy = socks5://192.168.0.20:3128
- proxy = http://192.168.0.20:3128
-
- [https]
-
- proxy = socks5://192.168.0.20.3128
- proxy = hhttps://192.168.0.20.3128
- [credential "https://yd-code.srdcloud.cn"]
- provider = generic
参考链接
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。