美文网首页
生成git本机密钥+更新git服务

生成git本机密钥+更新git服务

作者: 上进青年欢乐多 | 来源:发表于2017-03-28 13:29 被阅读76次

配置本机的git密钥

ssh-keygen -t rsa

提示输入
Enter passphrase (empty for no passphrase):

Enter same passphrase again:

上述都可以为空

会生成文件,打开文件

vim /Users/tuanShao/.ssh/id_rsa.pub

Paste_Image.png

将生成的id_rsa.pub内容添加到

Paste_Image.png

搞定,可以git clone项目了。

相关文章

网友评论

      本文标题:生成git本机密钥+更新git服务

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