1. 程式人生 > >Mac下 Brew 更新緩慢問題解決

Mac下 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

OK!
映象來源: 清華大學開源軟體映象站