新增腾讯云,包含了大部分开源镜像:https://mirrors.cloud.tencent.com/

# 腾讯云Homebrew
cd "$(brew --repo)"
git remote set-url origin https://mirrors.cloud.tencent.com/homebrew/brew.git/
cd "$(brew --repo)"

# 中科大的源
git remote set-url origin git://mirrors.ustc.edu.cn/brew.git

# coding的源
git remote set-url origin https://git.coding.net/homebrew/homebrew.git

换回默认源:

cd "$(brew --repo)"

git remote set-url origin https://github.com/Homebrew/brew
打赏不准超过你工资的一半!!!