git代理设置方法解决

Posted hookjc

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git代理设置方法解决相关的知识,希望对你有一定的参考价值。

git config --global http.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‘
git config --global https.proxy ‘socks5://127.0.0.1:1080‘

以上是关于git代理设置方法解决的主要内容,如果未能解决你的问题,请参考以下文章

代理设置-解决Win7下Git 和 虚拟机下Ubuntu无法上网问题

homebrew代理设置

如何为 Git 设置代理

git设置代理

git设置ss代理

linux 设置代理上网