#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
#如果已使用ss代理,则通过socks5协议,通过命令行的方式走ss通道
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
#也可以直接编辑配置文件
vi ~/.gitconfig
#vi常用指令tips
dd 删除一行
:w 存盘
:q 退出
git ss代理配置
猜你喜欢
转载自fanfq.iteye.com/blog/2334413
今日推荐
周排行