1.配置个人信息
git config --global user.name "你的username"
git config --global user.email "你的邮箱"
2.生成公私密钥对
ssh-keygen -t rsa -C "邮箱地址"
# eg:
$ ssh-keygen -t rsa -C "example@qq.com"
Generating public/private rsa key pair.
# 这里需要注意 如果使用默认路径和名字为id_rsa则直接按下回车就可以,如果自定义其他名字还需要将前面的路径补全
# 我这里就是自定义的名字叫github
Enter file in which to save the key (/c/Users/Vergil/.ssh/