输入如下命令,并按回车
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
title :XXX
key:将刚刚从id_rsa.pub 复制得内容完全粘贴
# 显示这样代表成功了
Connection to github.com closed.