`
fanfq
  • 浏览: 263642 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

git ss代理配置

阅读更多
#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  退出




分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics