1、安装homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2、安装时卡在Downloading Command Line Tools for Xcode
卡在这一步骤时,可以去[https://developer.apple.com/download/more/](https://developer.apple.com/download/more/)上登陆,下载对应版本(**Xcode-11.5**)的Command Line Tools ,然后手动安装
3、安装git
brew install git
网友评论