I've seen similar questions but mine is quite different. Let me explain
I cloned a repository on github "https://github.com/username/repository"
The repository is not mine, but people have access to clone, push changes and make pull request. But I can't push to the repository. I don't know why I have this problem.
whenever I push my branch
git push origin new-branch
I get the error: remote: "Permission to username/repository.git denied to username2. fatal: unable to access 'https://github.com/usernames/repository.git/': the requested URL returned error: 403"
Initially, I forked the repository, created a branch and made my pull request. But I wasn't supposed to fork the repository, so I deleted the forked repository.
How do I fix the permission error and push changes?