git设置socks代理

概述

不知道为什么今天我访问github这么慢,没办法给git设置socks代理吧

设置代理

终端下执行 git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080'

删除代理

git config --global --unset http.proxy git config --global --unset https.proxy

最后

没错就是这么简单,有问题的可以找我

欢迎关注Bboysoul的博客www.bboysoul.com Have Fun

猜你喜欢

转载自my.oschina.net/u/3778921/blog/1635271