开发者

Git push origin master ERROR following checklist on github.com new repo

This is my first time using git, and I am not sure what is going on, and I can't find开发者_运维问答 an answer that is resolving the problem.

I am running:

git commit -m 'first commit'
git remote add origin git@github.com:OldWest/CakePHP-Tutorials.git
git push origin master

And everytime I run: push origin master, I get error: Permission Denied (publickey). Fatal: The remote end hung unexpectedly.

So I ran: ssh-keygen -t rsa to generate a local key. That did not resolve it.

Anyone know why this is not working?


You have to upload your public key to your account on GitHub so they know that it's you and not some random person. The key is located in the .ssh folder of your home directory.

See "Adding the key to your GitHub account" on this page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜