git配置用户名密码、生成ssh。添加到github

版权声明:本文为博主原创文章,转载请注明出处。 https://blog.csdn.net/harrain/article/details/72467947

一 、

设置Git的user name和email:

$ git config --global user.name "xxx"
$ git config --global user.email "[email protected]"

git配置

二、生成SSH密钥过程:
1.查看是否已经有了ssh密钥:cd ~/.ssh
如果没有密钥则不会有此文件夹,有则备份删除
2.生存密钥:

$ ssh-keygen -t rsa -C “xxx@xxx.com”


4.在github个人中心setting上添加ssh密钥,这要添加的是“id_rsa.pub”里面的公钥。

gitSSH秘钥添加

猜你喜欢

转载自blog.csdn.net/harrain/article/details/72467947
今日推荐