git 报错:Please make sure you have the correct access rights and the repository exists
生活随笔
收集整理的這篇文章主要介紹了
git 报错:Please make sure you have the correct access rights and the repository exists
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
提示:Warning: Permanently added 'gitee.com,120.55.226.24' (ECDSA) to the list of known hosts.是公鑰出問題了,要先設置用戶和郵箱再重新生成ssh公鑰即可。
1、首先我得重新在git設置一下身份的名字和郵箱? ?進入到需要提交的文件夾底下(因為直接打開git Bash,在沒有路徑的情況下,根本沒!法!改!剛使用git時遇到的坑。。。)
git config --global user.name "yourname" git config --global user.email "your@email.com"注:yourname是你要設置的名字,your@email是你要設置的郵箱。
2、刪除.ssh文件夾(直接搜索該文件夾)下的known_hosts(手動刪除即可,不需要git)
3、git輸入命令
$ ssh-keygen -t rsa -C "your@email.com"(請填你設置的郵箱地址)接著出現:
Generating public/private rsa key pair. Enter file in which to save the key (/Users/your_user_directory/.ssh/id_rsa):請直接按下回車,然后系統會自動在.ssh文件夾下生成兩個文件,id_rsa和id_rsa.pub,用記事本打開id_rsa.pub,將全部的內容復制
4、打開https://github.com/,登陸你的賬戶,進入設置
進入ssh設置
在key中將剛剛復制的粘貼進去
點擊add ssh key,ok!
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的git 报错:Please make sure you have the correct access rights and the repository exists的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: c#元胞自动机_元胞自动机+生命游戏
- 下一篇: RHadoop搭建(HDFS+MapRe