美文网首页
取消 git 代理

取消 git 代理

作者: 瑛伟达 | 来源:发表于2020-06-09 10:38 被阅读0次

https://blog.csdn.net/omgkill/article/details/81903279

本地开启VPN后,GIt也需要设置代理,才能正常略过GFW,访问goole code等网站

设置如下(可复制):

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 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/obqstktx.html