brew update 更新过慢的问题

/ 默认分类 / 没有评论 / 601浏览

brew使用国内镜像源

步骤一

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

步骤二

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"



git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

#步骤三 brew update

复原:修改为原用官方镜像

cd "$(brew --repo)"

git remote set-url origin https://github.com/Homebrew/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"

git remote set-url origin https://github.com/Homebrew/homebrew-core

brew update