美文网首页程序员
Git如何添加SSH Key

Git如何添加SSH Key

作者: onweer | 来源:发表于2016-01-31 19:23 被阅读1053次
  1. Windows平台下,首先安装Git .
  2. 设置 <code> git config --global user.email "youremail@example.com"</code>
  3. 同样 的设置<code> git config --global user.name "example"</code>
  4. git输入命令<code>ssh-keygen -t rsa -C "youremail@example.com"</code>
  5. windows下在user/用户名/里面找到.ssh文件夹 复制id_rsa.pub内容到github,登陆GitHub,打开"Account settings","SSH Keys"页面:然后,点"Add SSH Key",填上任意Title,在Key文本框里粘贴 id_rsa.pub

给个github follow me的链接,上面有很多初学者可供学习的资料,项目.

<a>https://github.com/SuperZee</a>

相关文章

网友评论

    本文标题:Git如何添加SSH Key

    本文链接:https://www.haomeiwen.com/subject/iitskttx.html