替换brew.git
cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
替换homebrew-core.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
本文介绍了如何将Homebrew的主仓库和homebrew-core子模块的Git远程URL更改为清华大学的镜像源,并指导读者如何刷新Homebrew源。
1080

被折叠的 条评论
为什么被折叠?



