guofeng@50ed3c1dd5f6 ~ % git -C "$(brew --repo)" remote -v
origin https://github.com/Homebrew/brew (fetch)
origin https://github.com/Homebrew/brew (push)
guofeng@50ed3c1dd5f6 ~ % git -C "$(brew --repo homebrew/core)" remote -v
origin https://github.com/Homebrew/homebrew-core (fetch)
origin https://github.com/Homebrew/homebrew-core (push)
guofeng@50ed3c1dd5f6 ~ % git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
guofeng@50ed3c1dd5f6 ~ % git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
guofeng@50ed3c1dd5f6 ~ % git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
guofeng@50ed3c1dd5f6 ~ %
https://blog.csdn.net/WizardtoH/article/details/104744008