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:

  • git partial pull
  • Can git rebase record the SHA1 of the original commits like git cherry-pick -x does?
  • Insert git revision number into files during deployment
  • Blacklist .git folder in R CMD check
  • Git changelist's
  • Using Git when I want my branches to be always updated
  • 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:

    1. Why doesn’t github allow me to commit to master of the cloned repo, but it is a trivial question
    2. Should I add key to the organization in order to push to the public repo? Or what solution would you provide

    PS. Never thought that such a simple issue might take so long time to solve.

  • How to switch branches with git and get ignored files removed?
  • Connect local git repos on windows and raspberry pi
  • Check if all commits to one GIT branch have been cherry picked to another
  • How to search git log (using less) for word boundaries
  • git checkout and file directory behavior
  • Dealing with git, generated files and bower
  • One Solution collect form web for “Cloned a public repo, pushed back. Permission denied (publickey)”

    First make sure you have
    added key
    from this file to GitHub

    ~/.ssh/id_rsa.pub
    

    then make sure you are cloning with URL similar to this

    git clone git@github.com: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.

    support@github.com
    

    Also perhaps this page can help

    Error: Permission denied (publickey)

    Git Baby is a git and github fan, let's start git clone.