GitHub Error Message - Permission denied (publickey)

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

    this worked for me:

    1- remove all origins

    git remote rm origin  
    

    (cf. https://www.kernel.org/pub/software/scm/git/docs/git-remote.html)

    *remote : "Manage the set of repositories ("remotes") whose branches you track.

    *rm : "Remove the remote named . All remote-tracking branches and configuration settings for the remote are removed."

    2- check all has been removed :

    git remote -v  
    

    3- add new origin master

    git remote add origin git@github.com:YOUR-GIT/YOUR-REPO.git
    

    that's all folks!

提交回复
热议问题