Someone I know is trying to clone my github repo and make changes directly to it. It's a public repo. He's cloned it with my read-write access link and he can pull from the repo. The problem is when he tries to push anything he gets the error
ERROR: Permission to user1/repo.git denied to user2
This error occurs when you attach your key as a deploy key on repo1.
You can push and pull from that repo without issue, but you won’t have
access to any other repo with your key. To solve this, remove the key
from repo1’s deploy keys and attach it on your account page instead.
This key will now have access to all repos your account has access to.
I was stupid and didn't add them as collaborators.
To do this, follow these instructions:
- Go to
- You will see a text box with a
Addbutton. In order to add a collaborator you start typing in the text box until you see the actual username suggested to you in the drop down list that appears as you type.
- Select that username which will cause a green check mark to appear indicating the system recognized that username.
Addto add that collaborator to the repository.
You can also watch this octocast: http://screencast.com/t/m7yN19N4645h