【问题标题】:On Mac : git push results in "requested URL returned error: 403" [duplicate]在 Mac 上:git push 导致“请求的 URL 返回错误:403”[重复]
【发布时间】:2020-04-11 06:57:06
【问题描述】:

在 MacBook Pro 上。试图将最近的更改推送到 repo。

$ git push origin master
remote: Permission to customer548repo/dbserver.git denied to krazyigor.
fatal: unable to access 'https://github.com/customer548repo/dbserver.git/': The requested URL returned error: 403

【问题讨论】:

  • 您的身份验证是否正确? 403被禁止。您使用的网址是否正确?

标签: git github http-status-code-403


【解决方案1】:

帽子错误意味着您使用了错误的凭据或错误的回购:

Username needs to be the user, not the email
Ensure you provide the proper password. If you have 2FA enabled on GitHub, you need to make sure you create an Access Token with proper access permissions and use the token as password instead.
Repo format is: https://github.com/<user>/<repo>.git

403 表示 GitHub 未授予您访问权限,因此上述 3 件事中的一项或多项是问题

【讨论】:

    猜你喜欢
    • 2021-11-14
    • 2019-11-05
    • 2022-10-24
    • 2016-06-20
    • 2019-04-11
    • 1970-01-01
    • 1970-01-01
    • 2022-07-31
    • 2022-10-14
    相关资源
    最近更新 更多