ITeye博客

git ss代理配置

fanfq · 2016-10-31 12:57 · Android · 开源软件 · Markdown

#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 退出

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。