1.右键,点击 git bash here
2.安装成功后设置用户和邮箱
git config --global user.name "name"
git config --global user.email "email"
3.生成SSH Key
ssh-keygen -t rsa -C 'email'
( 运行后连按三次enter,日志会打印生成的目录,即Created directory )
3.添加密钥
进入生成目录复制id_rsa.pub文件的内容添加到项目管理的密钥库中
另外,打开git gui here ,在Help,Show SSH Key也可以直接看到ssh公钥