👋 Hello everyone,
I am trying to push the local change to my remote repository, but it fails with 403 - Permission denied.
If you're using multiple github accounts then that could also be the cause of the problem. Git stores your username and password in the credential vault of your operating system.
Whenever I performed a git push
it was taking my old username which I set long back, and I wanted to use new a GitHub account to push changes. I later found that my old GitHub account credentials were stored under Control Panel → User Accounts → Credential Manager → Manage Windows Credentials.
However, the push operation failed with a 403 error, with the following message:
and then resolved it by the following method:
Go to Control Panel
Open User Accounts
Open Credentials Manager
Open Windows Credentials
I just removed these credentials and when I performed a
git push
it asked me for my GitHub credentials, Authentication Succeeded and It performed flawlessly.
🎉 Congratulation 💯 🥳
Now successfully we can push to the remote repository.
If you enjoyed this article please like it and share it with your friends and colleagues!
Thank you for reading🤓