美文网首页
git ssh key配置

git ssh key配置

作者: bknlm | 来源:发表于2016-07-31 13:15 被阅读0次

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