Sunday, February 10, 2019

Pushing on Github and Credentials and 403 error

Pushing on Github and Credentials and 403 error

Sometimes when we can work on Github with more than one account, we can obtain an error 403!!

git push (...)
remote: Permission to (...) denied to (...)
fatal: unable to access (...) The requested URL returned error: 403

The error is that our computer has saved a git username and password for Github in Windows Credentials, so if we shift to another account the error 403 will appear. 

Below is the solution:

Control panel > user accounts > credential manager > Windows credentials > Generic credentials
(IN POLISH: Panel sterowania\Konta użytkowników i Filtr rodzinny\Menedżer poświadczeń)

Next remove the Github keys and log in again.


No comments: