热门搜索 :
考研考公
您的当前位置:首页正文

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

来源:东饰资讯网

配置本机的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项目了。

Top