美文网首页
2018-05-19Could not read from re

2018-05-19Could not read from re

作者: 纳米片 | 来源:发表于2018-05-19 15:10 被阅读0次

    错误

    fatal: 'origin' does not appear to be a git repository
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    

    1、如果电脑上有ssh key,要将就有的备份并删除(直接删除文件即可),如果没有,输入以下命令:

    1 $ ssh-keygen -t rsa -C "邮件地址@youremail.com"
    2 Generating public/private rsa key pair.
    3 Enter file in which to save the key (/Users/your_user_directory/.ssh/id_rsa):<回车就好>
    

    尤其注意第三行,应该直接回车,而不是输入自定义的文件名。然后将生成的id_rsa.pub的内容原封不动上传到git,之后测试命令:

    $ ssh -T git@github.com
    

    选择“yes”,输入用户名和密码,提示成功!

    相关文章

      网友评论

          本文标题:2018-05-19Could not read from re

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