【问题标题】:I can't do git push or pull because i get "The requested URL returned error: 403"我无法执行 git push 或 pull 因为我得到“请求的 URL 返回错误:403”
【发布时间】:2022-10-14 21:16:47
【问题描述】:

当我尝试git push origin master 并验证我的凭据时,我收到此错误...

remote: Write access to repository not granted.
fatal: not possible to access 'https://github.com/ElmisteriOkay/joyeria-alejandros.git/':The requested URL returned error: 403

我在英文的stackoverflow上找到了一些解决方案,说我必须向全局.gitconfig文件的[credential]添加配置,我已经这样做了,同样的错误还在继续。

我在本地存储库的配置文件中执行了相同的过程,但它对我也不起作用。

我还能尝试解决什么问题? :(

【问题讨论】:

  • 仓库是自己创建的吗?
  • 您无法写入此存储库,因为您没有被授予写入权限。请联系存储库所有者并授予您写许可。
  • 是的,这是我的@LeiYang
  • 但存储库是我的。唯一的问题是它是私人的,但我是所有者。
  • 首先,删除或注释掉 gitconfig 中的 credential.helper 并尝试 git push origin master。预计会要求您提供用户名和密码(或令牌)。

标签: git github git-push


【解决方案1】:

我有完全相同的问题,找不到任何解决方案

【讨论】:

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