GitHub Error Message - Permission denied (publickey)

后端 未结 30 2551
长发绾君心
长发绾君心 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:02

    This happened to me. For some reason my origin got messed up without my realizing it:

    Check if your settings are still correct

    git remote -v
    

    the url needs to be something like ssh://git@github.com/YourDirectory/YourProject.git; if you don't see git@github.com, use

    git remote set-url origin git://github.com/YourDirectory/YourProject.git
    

    to set it right. Or you could use the github app to check and set the Primary Remote Repository url in the settings panel of your particular repository.

提交回复
热议问题