标签:lazy sts content hosts shu 打开终端 https net details
一、优先检查系统中是否已安装git,打开终端/Terminal,输入命令:git,查看返回的结果,若无相关git信息,进入下一步;
二、git地址:https://git-scm.com/,选择「Download for macOS」,打开地址:https://brew.sh/,复制命令至终端:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
三、回车,若进入安装步骤且安装成功,则结束;若无法连接,安装homebrew失败,可通过更改host文件,具体查看:https://www.jianshu.com/p/1a2a23a3aac6
四、完成以上步骤后,重复步骤二,进入homebrew安装后,即可完成git安装
附:如何修改mac的hosts文件:https://blog.csdn.net/qq_41162289/article/details/80239468
标签:lazy sts content hosts shu 打开终端 https net details
原文地址:https://www.cnblogs.com/aaaway/p/14897636.html