输入如下命令,并按回车

git config --global [user.name](<http://user.name/>) "github用户名"

git config --global user.email "github邮箱" 

ssh-keygen -t rsa -C "github邮箱" //生成ssh key

一直按回车,知道出现如下key's randomart image

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/43d86bc5-61de-45d9-a56c-c1e5cbe85bc2/Xnip2020-04-10_17-48-23.png

title :XXX

key:将刚刚从id_rsa.pub 复制得内容完全粘贴
# 显示这样代表成功了
Connection to github.com closed.