1.cmd进入用户主目录中:cd ~
2.执行命令生成一个.ssh的目录:ssh-keygen -t rsa -C 邮箱(申请git账号所用邮箱)
3.按三次回车键
4.执行完成之后发现在.ssh目录下有两个文件:
5.打开id_rad.pub文件,将里面的内容进行复制
6.打开github账号,点击头像,找到Settings点击进入
7.在Title中随便起名字,在Key中将刚才复制的内容粘贴到这里
8.生成密钥之后就可以正常进行push操作了