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:

  • Is there a git --super/--force pull command?
  • How to use specified key when working with github via portablegit?
  • Safe way to work in Git
  • concurrent git pulls to same local repository
  • Git and Rails: ignore database.yml
  • Move files between commits
  • 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.

  • Change the commit author of commits starting with a pattern (in message)
  • Git: What formats are supported by @{}?
  • Use one remote for pulling and another for pushing using Git
  • Clone from a branch other than master
  • Using git with diffmerge with no prompts and no alias
  • Dynamic elements in bash PS1
  • 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.