美文网首页小技巧
git遇到的问题

git遇到的问题

作者: CYC666 | 来源:发表于2017-09-06 11:27 被阅读11次

    执行 git push origin master 操作会报该错误:

    Permission denied (publickey).

    fatal: Could not read from remote repository.

    问题:我已经在github上传了SSH公钥,但是却没有在本地添加SSH

    解决方法:在本地添加我生成的SSH文件

    比如我现在已经在当前文件夹找到了SSH文件

    执行:ssh-add 13705038428SSH

    就可以了

    =====================================

    问题:

    hint: Updates were rejected because the tip of your current branch is behind

    hint: its remote counterpart. Integrate the remote changes (e.g.

    hint: 'git pull ...') before pushing again.

    hint: See the 'Note about fast-forwards' in 'git push --help' for details.

    当前路径并非git路径😆真尴尬,网上一片解说,贼菜

    =====================================

    问题 : Permission denied (publickey).

                 fatal: Could not read from remote repository.

    git目录下的SSH和公钥不能删,删了就会出现这个错误

    解决:重新生成SSH,上传到github,本地再次添加SSH就好了

    曹老师8428

    相关文章

      网友评论

        本文标题:git遇到的问题

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