# Update Mirrors
git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git
brew update
会检查brew
、brew-core
、brew-cask
三个仓库的更新。由于这三个仓库是在 github 上,所以速度会很爆炸,更换为国内镜像的时候需要将这三个都替换掉。具体的信息可以通过brew update -v
查看。
# References
https://mirror.tuna.tsinghua.edu.cn/help/homebrew/
https://mirrors.ustc.edu.cn/help/homebrew-cask.git.html
Last Update: 2020-01-13 16:49:12 Source File