对仓库具有管理员权限的人员可以管理团队对仓库的访问权限。 团队维护员可以� 除团队对仓库的访问权限。
警告:
- 如果团队能够直接访问仓库,您可以更改其权限级别。 如果团队对仓库的访问权限继承自父团队,则您必须更改团队对仓库的访问权限。
- 如果您添� 或� 除父团队的仓库访问权限,则其每个子团队也会获得或失去相应的仓库访问权限。 更多信息请参阅“关于团队”。
授予团队对仓库的访问权限
- In the top right corner of GitHub Enterprise Server, click your profile photo, then click Your organizations.
- 单击您的组织名称。
- 在组织名称下,单击 团队。
- 在 Teams(团队)选项卡上,单击团队名称。
- 在团队成员列表上,单击 Repositories(仓库)。
- 在仓库列表上方,单击 Add repository(添� 仓库)。
- 输入仓库的名称,然后单击 Add repository to team(添� 仓库到团队)。
- 也可选择在仓库名称右侧使用下拉菜单,为团队选择不同的权限级别。
� 除团队对仓库的访问权限
如果团队能够直接访问仓库,您可以更改其对仓库的访问权限。 如果团队对仓库的访问权限继承自父团队,则必须� 除父团队对仓库的访问权限才可� 除其子团队的相应权限。
Warning:
-
If you remove a person’s access to a private repository, any of their forks of that private repository are deleted. Local clones of the private repository are retained. If a team's access to a private repository is revoked or a team with access to a private repository is deleted, and team members do not have access to the repository through another team, private forks of the repository will be deleted.
-
When LDAP Sync is enabled, if you remove a person from a repository, they will lose access but their forks will not be deleted. If the person is added to a team with access to the original organization repository within three months, their access to the forks will be automatically restored on the next sync.
-
You are responsible for ensuring that people who have lost access to a repository delete any confidential information or intellectual property.
-
People with admin permissions to a private or internal repository can disallow forking of that repository, and organization owners can disallow forking of any private or internal repository in an organization. For more information, see "Managing the forking policy for your organization" and "Managing the forking policy for your repository."
- In the top right corner of GitHub Enterprise Server, click your profile photo, then click Your organizations.
- 单击您的组织名称。
- 在组织名称下,单击 团队。
- 在 Teams(团队)选项卡上,单击团队名称。
- 在团队成员列表上,单击 Repositories(仓库)。
- 选择要从团队� 除的仓库。
- 在仓库列表上方,使用下拉菜单,然后单击 Remove from team(从团队� 除)。
- 检查要从团队� 除的仓库,然后单击 Remove repositories(� 除仓库)。
延伸阅读
- "组织的仓库角色"