GitHub: Permission denied (publickey). fatal: The remote end hung up unexpectedly

前端 未结 23 1702
情深已故
情深已故 2020-11-28 01:09

I have followed these instructions below to upload a project.

Global setup:

 Download and install Git
  git config --global user.name \"Your Name\"
         


        
23条回答
  •  离开以前
    2020-11-28 01:59

    I had this problem, but none of the solutions above worked. I could clone and fetch but couldn't push. Eventually, I figured out the problem was in the url in my .git/config, it should be:

    git@github.com:/
    

    (not ssh://github.com//.git or https://github.com//.git).

提交回复
热议问题