1. 设置global name 和 email
$ git config --global user.name "your git username"
$ git config --global user.email "your git email test@gmail.com"
2. 生成SSH密钥
$ cd ~/.ssh
$ ssh-keygen -t rsa -C “test@gmail.com”
3.在github上添加id_rsa.pub里的公钥
1. 设置global name 和 email
$ git config --global user.name "your git username"
$ git config --global user.email "your git email test@gmail.com"
2. 生成SSH密钥
$ cd ~/.ssh
$ ssh-keygen -t rsa -C “test@gmail.com”
3.在github上添加id_rsa.pub里的公钥
本文标题:git ssh key配置
本文链接:https://www.haomeiwen.com/subject/jnntsttx.html
网友评论