Silent Whisper

record things, events and people in life

Homebrew error, unable to access github.com

Posted at — Sep 3, 2019
所有内容均为原创,转载必须在文章开头注明[转载自Silent Whisper,原文链接 - Homebrew error, unable to access github.com]

这几天使用brew时,总是提示“unable to access ‘https://github.com/Homebrew/brew/': Failed to connect to 127.0.0.1…“,尝试了下列命令也不起效,甚至卸载了homebrew,重装时还是一样的错误。

git config –global –unset http.proxy git config –global –unset https.proxy

在网上查询各类解决方案,有人提示查查 ~/.gitconfig 这个文件。果然!是这里的问题,里面不知什么时候增加了针对github.com的代理设置,删掉后重启terminal就正常了。谢谢万能的互联网!

因为一时脑热,删掉了homebrew,现在重装一堆应用和服务中。。。