githubpermissionspushorganization

Owner can't push to organization repository


today I've moved my private github repository to newly created organization (of which I'm an owner). I've changed my remote origin to [email protected]:organization/repo.git. I'm not able to push to remote because I've got an error saying

Error: Permission to organization/repo.git denied to MyGithubUsername.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

I've checked that my account is owner of organization and repository exists.


Solution

  • I managed to find an answer. Maybe I did something wrong, or maybe it was because of github issues, but even if I was stated as an owner of Organization I had only rights to read repository. I couldn't change permission for myself because "you can't change permission for owner". I changed permissions for all members to admin, and because for now I'm the only one member of organization it's not a big deal.