git 查看密钥

查看配置信息

git config -l

查看密钥文件位置


1.先执行 cd ~/.ssh
2.执行 pwd

查看密钥


1.先执行   cd ~/.ssh
2.执行 cat id_rsa.pub
 

初始化自己的用户名和邮箱

git config --global user.name “输入你的用户名”  
git config --global user.email “输入你的邮箱”

生成密钥

ssh-keygen -t rsa -C "邮箱名称"
 

你可能感兴趣的:(git,git)