不能在主分支中推送提交



我已经向本地机器提交了一次提交,但是当我试图将提交推到主分支时,我面临以下错误:

git push origin main
remote: Permission to ragnarok/encode-project.git denied to Bhavishyag2.
fatal: unable to access 'https://github.com/ragnarok/encode-project.git/': The requested URL returned error: 403

当我用SSH远程执行上述操作时,它给出了一个不同的错误:

encode-project>git push origin main
ERROR: Permission to ragnarok/encode-project.git denied to Bhavishyag2.
fatal: Could not read from remote repository.

有谁能帮忙吗?

这意味着用于访问ragnarok的存储库或注册到GitHub的SSH公钥的凭据(用户名/令牌)是:

  • 不是世界毁灭的
  • 识别未注册为ragnarok/encode-project项目合作者的远程帐户Bhavishyag2。

如果你是Bhavishyag2,你需要forkragnarok/encode-project,然后才能添加/提交,更重要的是,将其推送到该存储库。