1.git的方式
安装
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
更换镜像
$ cd "$(brew --repo)" && git remote set-url origin https://git.coding.net/homebrew/homebrew.git
$ cd $home && brew update
2.其他方式(一路点击下一步即可)
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"