版权声明:本文为博主原创文章,欢迎转载,转载请注明作者、原文超链接: https://blog.csdn.net/w1293069091/article/details/84888878
替换现有上游,命令一行一行输入。
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
OK!
镜像来源: 清华大学开源软件镜像站