GIT,lease make sure you have the correct access rights

1、改邮箱

git config --global user.name "git名称"

git config --global user.email“邮箱@email.com"

 

2、删除.ssh文件夹(直接搜索该文件夹)下的known_hosts

 

3、git输入命令

$ ssh-keygen -t rsa -C "邮箱@email.com"

 

接着出现:

Generating public/private rsa key pair.

Enter file in which to save the key (/Users/your_user_directory/.ssh/id_rsa):

 

一路按下回车

 

会生成id_rsa和id_rsa.pub,复制pub的到git上去

 

 

posted @ 2020-10-19 00:46  Catonce  阅读(96)  评论(0编辑  收藏  举报