【问题标题】:Trying to Pull Request on git hub but试图在 github 上拉取请求,但是
【发布时间】:2020-12-30 21:17:36
【问题描述】:

我尝试 PR 我的脚本,但没有成功。在我执行 git commit -m 然后 git push 之后,我得到了这个错误:

Please make sure you have the correct access rights
and the repository exists.

我该如何解决?谢谢你

【问题讨论】:

  • 看起来您可能没有对存储库的推送访问权限。请与 repo 的管理员联系,为您提供推送访问权限。

标签: github repository


【解决方案1】:

检查您的远程 URL:

cd /path/to/local/repository
git remote -v

它的 URL 可能仍然引用原始存储库而不是 of your fork

如果是这种情况,请将 URL 更改为:

git remote set-url origin https://github.com/<me>/<myFork>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-01-11
    • 2015-05-24
    • 2017-05-05
    • 2013-06-09
    • 2016-12-26
    • 2018-05-02
    • 2021-09-17
    相关资源
    最近更新 更多