mac下安装git

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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容