Github push error. Permission denied
If you're just creating a repo, there's no need to do a git push; git init will create the repo. Also, I would stay away from using sudo when running git. You might also want to go to this site to help you understand git: http://progit.org/book/ch1-3.html
If you are using github, you might want to read this: http://help.github.com/linux-set-up-git/
Could this be of any help?
Quote:
Did you forget to add your public key to the github project settings? Also check to make sure your private key is in your .ssh directory.
Goto https://github.com/[username here]/[project name here]/edit and make sure your public key is set.
Read this too: http://help.github.com/mac-key-setup/
Hello it could be because you're trying to git push as root, with sudo, did you set your public key or root key, usually you just supply your key and not the root key, that could be why you're getting such error.