直接上代码:
一路回车,然后就在/User/用户名/.ssh目录下生成了id_rsa.pub(公钥)与id_rsa(私钥),需要复制公钥:
然后复制公钥,打开github网址:https://github.com/settings/keys,点击 New SSH Key 即可