/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
敲击完毕后输入 1
若无法成功,可再次输入命令重试
安装成功后重新启动
brew install git
安装完成后 git version 查看
git config --global user.name "Your Name"
git config --global user.email "email@example.com"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.39.1/install.sh | bash
或curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
若安装失败提示403
前往 /etc 文件夹下,修改hosts文件
在最后一行添加 199.232.28.133 raw.githubusercontent.com