git生成SSH公钥

1.配置用户名

1
git config --global user.name "liudongdong2"

2.配置邮箱

1
git config --global user.email "1612043566@qq.com"

3.C:\Users\1612043566目录下生成.gitconfig配置文件

4.ssh-keygen -t rsa -C “1612043566@qq.com“,生成公钥和私钥,按3次Enter;
可以在C:\Users\1612043566目录下生成.ssh下的id_rsa.pub查看公钥