美文网首页
Git代理设置

Git代理设置

作者: fnoop | 来源:发表于2018-07-03 22:48 被阅读8次

设置代理

git config --global https.proxy http://127.0.0.1:1080

或者

git config --global https.proxy https://127.0.0.1:1080

设置socks5代理

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

相关文章

网友评论

      本文标题:Git代理设置

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