//替换 brew-git
$ cd "$(brew --repo)"
$ git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
//替换homebrew-core.git
$ cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
$ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
//替换homebrew-cask
$ cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
$ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
-----------------------------------
解决 MAC 上 brew update 更新缓慢甚至卡死状态
标签:origin,git,cn,update,MAC,set,brew,homebrew From: https://blog.51cto.com/u_14904189/7471396