赞
踩
如果socks5(SSR)
第一,你需要知道你本地的socks5代理ip地址和端口。
例如。127.0.0.1端口1080
然后使用此命令设置代理
- git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
- git config --global https.https://github.com.proxy socks5://127.0.0.1:1080
如果http / https
使用此命令:
- git config --global https.proxy http://127.0.0.1:1080
- git config --global https.proxy https://127.0.0.1:1080
- git config --global --unset http.proxy
- git config --global --unset https.proxy
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。