1.安装git
2.打开git base(最好以管理员身份运行)
3.git 终端设置用户名
git config --global user.name "wgh"
4.设置邮箱
git config --global user.mail “your mail"
5.进入密钥所在的文件夹 cd ~/.ssh查看是否已经有密钥,没有则生成密钥,执行ssh-keygen -t rsa -C "your mail" ,密钥默认保存路径是C:\Users\Administrator\.ssh,注意按三个回车,不设置密码。