// 进入brew根目录,也可以用cd `brew --repo`
cd /usr/local/Homebrew
// 查看镜像源
git remote -v
更改brew镜像源
cd /usr/local/Homebrew
git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew.git
https://github.com/Homebrew/brew.git
-官方镜像源
https://git.coding.net/homebrew/homebrew.git
- Coding
https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
- 清华
https://mirrors.ustc.edu.cn/brew.git
- 中科大
试了半天发现还是不行!!!
最后还是开启了全局代理
,解决了速度慢的问题