问题描述:在进行Brew更新时,发现更新的特别慢,等待时间太长了。
解决方式:
1,切换到Homebrew目录
cd /usr/local/Homebrew
git remote -v
origin https://github.com/Homebrew/brew (fetch)
origin https://github.com/Homebrew/brew (push)
2,
使用中科大镜像
替换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
3,再进行brew update 更新时,肉眼可见的快了