美文网首页
Updating Homebrew...卡住的解决办法

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

作者: 小如99 | 来源:发表于2019-12-06 10:07 被阅读0次

原文链接: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)

相关文章

网友评论

      本文标题:Updating Homebrew...卡住的解决办法

      本文链接:https://www.haomeiwen.com/subject/iopsgctx.html