Error 403 github

Asked

Viewed 1,275 times

3

I created a new Github account and when I try to give a git push -u origin master it returns an error saying that I am not allowed to access that repository. It appears as if my old account was trying to access this repository. I tried to change using git config user.name "Antonio Matheus" and also with git config user.email "[email protected]". But still the error persists.

Error appears like this:

remote: permission to antoniomatheush/Pomodoro-timer-site.git denied to maggrilmur. fatal: Unable to access 'https://github.com/antoniomatheush/pomodoro-timer-site.git/': The requested URL returned error: 403

maggrilmur is the username of my old Github account, antoniomatheush is the one I recently created.

1 answer

3


Commit username and password have no relation to the authentication part on Github.

Windows is probably trying to use its old credentials. You can confirm this with the command:

git config credential.helper

To alter this, you need to go on Credential Manager from Windows. There, look for an entry similar to git.https://github.com. Edit it by entering your new Github user and password. After this, try again to do the push.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.