BREW_REPO="https://mirrors.ustc.edu.cn/brew.git"
cd "$(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
cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
Git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
brew update