原文链接:Updating Homebrew...卡住的解决办法
确保已安装homebrew,更新镜像源
1. 替换brew.git:
cd "$(brew --repo)"
git remote set-url origin [https://mirrors.ustc.edu.cn/brew.git](https://mirrors.ustc.edu.cn/brew.git)
2. 替换homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin [https://mirrors.ustc.edu.cn/homebrew-core.git](https://mirrors.ustc.edu.cn/homebrew-core.git)
3. 重置brew.git:
cd "$(brew --repo)"
git remote set-url origin [https://github.com/Homebrew/brew.git](https://github.com/Homebrew/brew.git)
4. 重置homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin [https://github.com/Homebrew/homebrew-core.git](https://github.com/Homebrew/homebrew-core.git)
网友评论