清华大学镜像

cd /usr/local
git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew.git
brew update



如果速度还是很慢,可以尝试以下操作:
cd ~/tmp
git clone git://mirrors.tuna.tsinghua.edu.cn/homebrew.git
rm -rf /usr/local/.git
rm -rf /usr/local/Library
cp -R homebrew/.git /usr/local/
cp -R homebrew/Library /usr/local/
brew update

homebrew-science 或者 homebrew-python

cd /usr/local/Library/Taps/homebrew/homebrew-science
git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew-science.git

cd /usr/local/Library/Taps/homebrew/homebrew-python
git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew-python.git

brew update

中国科学技术大学开源镜像

cd /usr/local
git remote set-url origin git://mirrors.ustc.edu.cn/homebrew.git

资料

  1. 中国科学技术大学开源镜像
  2. 清华大学Homebrew开源镜像
  3. 清华大学开源镜像列表