一、安装前需要先装git否则会报错
fatal: not in a git directory
Error: Command failed with exit 128: git
二、执行命令
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
三、卸载命令
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"
备注:
选择中科大的源,据说速度最快。