1.查看Git公钥/密钥是否生成
进入/Users/用户/.ssh/id_rsa
image.png
image.png
2.添加密钥
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
ssh-keygen -t rsa -C "you@example.com"
image.png
3.添加公钥
打开.ssh 的id_rsa.pub文件,复制里面的内容
image.png
4.终端设置
image.png