未授予对存储库的写访问权限

问题描述 投票:0回答:1

我连接到了 git 存储库 使用命令:

git clone https://<username>:<token>@github.com/<organizationname>/<repo>.git

现在当我尝试执行命令时:

git push -u origin <branch-name> 

上传要发布的分支

这是我得到的错误:

remote: Write access to repository not granted.
fatal: unable to access 'https://github.com/<organization-name>/<repo>/': The requested URL returned error: 403

我没有创建存储库,因此我无权访问设置等。

如何修复?

git repository branch
1个回答
0
投票

只有存储库所有者才能授予您推送权限。

否则,您应该分叉存储库,在新分支上工作,然后发出合并请求。

© www.soinside.com 2019 - 2024. All rights reserved.