Search code examples
gittortoisegit

Getting 403 error when trying to push to Git repo


I am getting an error when trying to push changes to Git repo https://github.com/covid19india/covid19india-react.git

I am using Tortoise Git on Windows 7 and using https. I was able to clone the repo using the same user.

Where might the issue be ?

git.exe push --progress "origin" refactor_switch_route
fatal: HttpRequestException encountered.
An error occurred while sending the request.
remote: Permission to covid19india/covid19india-react.git denied to myusername.
fatal: unable to access 'https://github.com/covid19india/covid19india-react.git/': The requested URL returned error: 403


git did not exit cleanly (exit code 128) (14258 ms @ 17-05-2020 17:37:03)

Solution

  • It must be that you are forbidden to access that repo or you don't have the required access or authentication. Maybe wrong authentication.

    Check this out https://www.a2hosting.in/kb/developer-corner/version-control-systems1/403-forbidden-error-message-when-you-try-to-push-to-a-github-repository