赞
踩
开启v2ray后,默认端口是10808
对于git的使用,可以配置相应的代理,具体如下:
git config --global http.proxy socks://127.0.0.1:10808
git config --global https.proxy socks://127.0.0.1:10808
git config --global http.proxy http://127.0.0.1:10808
git config --global https.proxy https://127.0.0.1:10808
socks代理与http代理不能同时配置,因为config的key相同,会造成覆盖
配置完成后,可以通过 git config --list 查看配置
git config --list
当不需要代理的时候,可以使用如下命令进行删除:
git config --global --unset http.proxy
git config --global --unset https.proxy
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。