1.打开网站https://www.ipaddress.com/
查询一下 raw.githubusercontent.com对应的IP 地址
以下图所示:
2.替换系统的host文件
找到host文件
在host文件里加上
199.232.28.133 raw.githubusercontent.com
3.而后执行安装
/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”git