替换原brew源
cd "$(brew --repo)"
// 中科大
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
// 码云
git remote set-url origin https://git.coding.net/homebrew/homebrew.git
重置brew.git:
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git
网友评论