不知道为什么,在自己的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

标签: os, Mac, 代理, git, hub

添加新评论