refer to : https://www.freesion.com/article/3951261010/
# cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
# mv homebrew-core homebrew-core.backup
# git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
# git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
# "$(brew --repo)"
# git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
# cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
# git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
# brew update
Q: 执行命令出现错误提示:brew clean => error: Not a directory @ dir_s_rmdir - /usr/local/Cellar/python3
A: chown -R serna.li:wheel /usr/local/Cellar/python3
brew clean