1.在电脑桌面,点击右键,选择Git Bash Here,打开窗口
2.在窗口中输入配置用户命令
git config --global user.name "username"
点击回车键(username是git用户名)
输入配置邮箱命令
git config --global user.email "ddd@qq.com"
点击回车键(ddd@qq.com是git的邮箱地址)
输入生成密钥的命令
ssh-keygen -t rsa -C "ddd@qq.com"
点击回车键直到结束。
密钥已经生成完成
输入查看命令
cat ~/.ssh/id_rsa.pub
将结果复制到Git密钥处
最后点击增加密钥就完成了。