建议阅读 home brew 是什么?
安装 对应版本 Command Line Tools
https://developer.apple.com/download/all/?q=xcode
安装 home-brew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)”
添加 ssh keys
参考 https://jingyan.baidu.com/article/dca1fa6f756777f1a44052e3.html
1、生成ssh key
ssh-keygen -t rsa -C “你的邮箱”
2、切换到ssh 目录
cd .ssh
3、查看 id_rsa.pub 文件内容
cat id_rsa.pub
4、将id_rsa.pub完整内容粘贴到 github 生成 ssk key 的编辑框(
https://github.com/settings/ssh/new)