以下代码逐行执行
cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
brew update
作者:DifferentWang
来源:CSDN
原文:https://blog.csdn.net/w1293069091/article/details/84888878
版权声明:本文为博主原创文章,转载请附上博文链接!