GitHub Error Message - Permission denied (publickey)

后端 未结 30 2778
长发绾君心
长发绾君心 2020-11-22 04:23

Anybody seen this error and know what to do?

I\'m using the terminal, I\'m in the root, the GitHub repository exists and I don\'t know what to do now.



        
30条回答
  •  情书的邮戳
    2020-11-22 05:06

    Once scenario where this will happen is when you follow GitHub instructions after you create your repository. Git will instruct you to add your remote with something like this.

    git remote add origin git@github.com:/.git

    Replace what's in <> with values related to your account.

    The solution is to remove the .git suffix. Add the remote as follows:

    git remote add origin git@github.com:/

提交回复
热议问题