尝试推送到Git仓库时出现403错误

时间:2020-05-17 12:10:04

标签: git tortoisegit

尝试将更改推送到Git存储库https://github.com/covid19india/covid19india-react.git

时出现错误

我在Windows 7上使用Tortoise Git并使用https。我能够使用相同的用户克隆存储库。

问题可能在哪里?

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)

2 个答案:

答案 0 :(得分:1)

必须是禁止您访问该存储库,或者您没有必需的访问或身份验证。可能是错误的身份验证。

检查一下 https://www.a2hosting.in/kb/developer-corner/version-control-systems1/403-forbidden-error-message-when-you-try-to-push-to-a-github-repository

答案 1 :(得分:0)

在尝试推送到我自己工作的一个存储库的特定分支时,我遇到了同样的问题。我尝试按照建议的方式进行操作,但是没有用...对我有用的是将存储库添加到Github Desktop并从那里推送它。我知道这不是解决方案,但这是一种解决方法。