Cloned a public repo, pushed back. Permission denied (publickey)
Just cloned a
public repo that belongs to the
company on github where I am an
admin. Made few changes and pushing it back.
Firsly, it asks me the
username / password pair, and I put my own username and password, and it told me:
Username for 'github.com': Password for 'github.com': error: The requested URL returned error: 403 while accessing https://github.com/KablamoAU/SenchaXCodeBuild.git/info/refs fatal: HTTP request failed
I solved it by adding
ssh to the URL
Than it bugs me out with:
Permission denied (publickey). fatal: The remote end hung up unexpectedly
However I can commit to all the
private repos in this organisation and can create other repos as well.
So my question is:
- Why doesn’t github allow me to commit to
masterof the cloned repo, but it is a trivial question
- Should I add key to the organization in order to push to the
publicrepo? Or what solution would you provide
PS. Never thought that such a simple issue might take so long time to solve.
One Solution collect form web for “Cloned a public repo, pushed back. Permission denied (publickey)”
First make sure you have
from this file to GitHub
then make sure you are cloning with URL similar to this
git clone firstname.lastname@example.org:antirez/redis.git
yet another option is to contact them directly if you have not already. I have emailed them several times, with pleasant experience.
Also perhaps this page can help
Error: Permission denied (publickey)