Cannot push to git repository - permission denied

前端 未结 9 999
太阳男子
太阳男子 2020-12-22 22:39

I have a following problem:

$ git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you ha         


        
9条回答
  •  时光说笑
    2020-12-22 23:16

    If you haven't already read it, you should look through the GitHub help page for this error:

    Error: Permission denied (publickey)

    Every time that I've had this problem, it was due to the last issue listed on that page: I didn't have the public key from my current workstation attached to my GitHub account. Of course, GitHub also provides instructions on how to attach your public key to your account.


    tl;dr

    Make sure your current public key is attached to your GitHub account.

提交回复
热议问题