brew update: fatal: unable to connect to github.com: github.



更新brew时出现以下超时错误

bhupendra@Bhupendras-MBP mobile-app % brew update                                        
fatal: unable to connect to github.com:
github.com[0: 140.82.121.3]: errno=Operation timed out
fatal: unable to connect to github.com:
github.com[0: 140.82.121.3]: errno=Operation timed out
Error: Fetching /usr/local/Homebrew failed!
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed!

如果有人有什么解决办法,请帮忙。

我通过从.gitconfig文件中删除以下行来修复macOS上的此问题:

[url "git://github.com/"]
insteadOf = https://github.com/

相关内容

  • 没有找到相关文章

最新更新