参考清华镜像
https://mirror.tuna.tsinghua.edu.cn/help/homebrew/

git clone https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/install.git
cd install

修改
BREW_REPO="https://github.com/Homebrew/brew"
# 改成:
BREW_REPO="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"

HOMEBREW_CORE_GIT_REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git bash install.sh

Homebrew国内镜像

相关文章: