Homebrew 的官方网站 https://brew.sh/
HOMEBREW_CORE_GIT_REMOTE=https://mirrors.ustc.edu.cn/homebrew-core.git
执行以下命令
/bin/bash -c "$(curl -fsSL <https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh>)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/$whoiam/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
fatal: Could not resolve HEAD to a revision
rm -rf $(brew --repo homebrew/core)
brew tap homebrew/core
https://blog.csdn.net/m0_50324291/article/details/108564732
/bin/zsh -c "$(curl -fsSL <https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh>)"
fatal: not in a git directory Error: Command failed with exit 128: git