所有者无法推送到组织存储库 [英] Owner can't push to organization repository

查看:192
本文介绍了所有者无法推送到组织存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我已经将我的私人github存储库移至新创建的组织(我是该组织的所有者).我已将远程来源更改为git@github.com:organization/repo.git.我无法推送到远程,因为我说错了

today I've moved my private github repository to newly created organization (of which I'm an owner). I've changed my remote origin to git@github.com:organization/repo.git. I'm not able to push to remote because I've got an error saying

错误:MyGithubUsername拒绝了Organization/repo.git的权限.

Error: Permission to organization/repo.git denied to MyGithubUsername.

致命:无法从远程存储库读取.

fatal: Could not read from remote repository.

请确保您具有正确的访问权限,并且该存储库存在.

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

我已检查我的帐户是组织的所有者,并且存储库存在.

I've checked that my account is owner of organization and repository exists.

推荐答案

我设法找到了答案.也许我做错了什么,或者可能是因为github问题,但是即使我被声明为组织的所有者,我也只有读取存储库的权限.我无法更改自己的权限,因为您无法更改所有者的权限".我更改了所有成员的管理权限,因为现在我是组织中的唯一成员,这没什么大不了的.

I managed to find an answer. Maybe I did something wrong, or maybe it was because of github issues, but even if I was stated as an owner of Organization I had only rights to read repository. I couldn't change permission for myself because "you can't change permission for owner". I changed permissions for all members to admin, and because for now I'm the only one member of organization it's not a big deal.

这篇关于所有者无法推送到组织存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆