Pushing to GitHub returning Error Code 403 fatal: HTTP request failed

Pushing to GitHub returning Error Code 403 fatal: HTTP request failed

👋 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 PanelUser AccountsCredential ManagerManage Windows Credentials.

However, the push operation failed with a 403 error, with the following message:

and then resolved it by the following method:

  1. Go to Control Panel

  2. Open User Accounts

  3. Open Credentials Manager

  4. 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🤓