mac brew 安装慢 替换清华源

使用homebrew清华源,加快brew安装丶更新速度。

替换brew.git

git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git

替换homebrew-core.git

git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

替换homebrew-cask.git

git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git

更新
brew update

发布了60 篇原创文章 · 获赞 0 · 访问量 1421

猜你喜欢

转载自blog.csdn.net/ClassmateLin/article/details/100639658