美文网首页
采用 socks proxy 作为git 设置和取消代理

采用 socks proxy 作为git 设置和取消代理

作者: 林慕空 | 来源:发表于2018-06-05 15:54 被阅读0次

我真挺笨的, 以前老用以下命令,不解决问题


错误方式

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

npm config delete proxy

正确方式:

git config --global http.proxy 'socks5://127.0.0.1:1080'

http 和 https 两种方式,均可以

相关文章

网友评论

      本文标题:采用 socks proxy 作为git 设置和取消代理

      本文链接:https://www.haomeiwen.com/subject/mltmsftx.html