# 替换brew.git:
step1:
cd "$(brew --repo)"
step2:
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
step3:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
step4:
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
step5:
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile
step6:
source ~/.bash_profile
step7:
brew update