permission denied (publickey) Error using git on windows 7

后端 未结 15 2213
暖寄归人
暖寄归人 2021-01-29 22:35

When I want to push to github with this command

git push origin master

I got this

Permission denied (publickey).
fatal: The rem         


        
15条回答
  •  感动是毒
    2021-01-29 22:55

    Here is a solution to a very specific problem that has the same error signature. This was the mistake I made and it is very easy to make. Basically, instead of doing this

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

    I did this (note typo)

      git remote add origin get@github.com:myusername/myrepo.git
    

    http://www.celticwolf.com/blog/2011/02/08/git-permission-denied-publickey/

提交回复
热议问题