Mac os 系统下设置git hub代理的小问题

Tuesday, Jun 28, 2022 | 1 minute read | Updated at Tuesday, Jun 28, 2022

@

不知道为什么,在自己的Mac os 设置git hub代理不行,使用的方法如下

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

怎么设置都不生效,显示代理错误,最后使用下面的方法解决了。

vi ~/.gitconfig 添加下面的代码

[http "https://github.com"]
    proxy = socks5://127.0.0.1:1086

© 2018 - 2026 vpslala

🌱 Powered by Hugo with theme Dream.