中科大源
- 替换brew.git
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git - 替换homebrew-core.git
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git - 更新brew
brew update
清华源
- 替换brew.git
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git - 替换homebrew-core.git
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git - 更新brew
brew update
恢复官方源
- 替换brew.git
git remote set-url origin https://github.com/Homebrew/brew.git - 替换homebrew-core.git
git remote set-url origin https://github.com/Homebrew/homebrew-core.git - 更新brew
brew update