Updating Homebrew...卡住的解决办法

2019-12-06  本文已影响0人  小如99

原文链接: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)
上一篇 下一篇

猜你喜欢

热点阅读