I face a following error message when push commits through terminal to Github over https.
remote: Permission to username/project-name.git denied to another-username.fatal: unable to access 'https://github.com/username/project-name.git/': The requested URL returned error: 403
If you use osxkeychain to store accounts such github, facebook and see error above then..
- Remove all data related to github stored in osxkeychain(/Applications/utilities/keychain access — select “log in” in key chain section, “password” in category section and search “git”)
- In terminal, run git push then git will ask username and password and then type username(not email) and your password.
In my case, It solved the problem.