1:官方网址链接:https://git-scm.com/download/mac
我选的是安装包下载,也就是 Binary installer,然后打开安装输入 git version 检查版本号
2:可能出现的报错信息
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
解决方案: 只要安装xcode-select插件就可以,命令如下:
xcode-select --install
安装完成没问题了,再执行下面的代码
sudo xcode-select --switch /Library/Developer/CommandLineTools
网友评论