Skip to main content

此版本的 GitHub Enterprise Server 将于以下日期停止服务 2026-03-17. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

将 项目 添加到团队

可将项目添加到团队来管理权限并提高项目可发现性。

谁可以使用此功能?

Organization owners or people with the team maintainer role and admin permissions on a project can add a project to a team.

About adding projects to teams

You can add projects to your team to give the whole team collaborator access to their projects. When you add a project to a team, that project is listed on the team's projects page, making it easier for members to identify which projects a particular team uses.

Teams are granted read permissions on any project they are added to. This permission is added to existing permissions for the project and for individual team members, ensuring that any higher permissions are retained. For more information about setting permissions for teams and individual contributors, see Managing access to your projects.

Adding a project to a team

  1. In the upper-right corner of GitHub, click your profile picture, then click Organizations.

  2. Click the name of your organization.

  3. Under your organization name, click Teams.

    Screenshot of the horizontal navigation bar for an organization. A tab, labeled with the people icon and "Teams," is outlined in dark orange.

  4. Click the name of the team.

  5. Click Projects.

    Screenshot of the main page for a team. In the horizontal navigation bar, the "Projects" tab is outlined in dark orange.

  6. Click Link a project.

  7. In the search field, start typing the name of the project you want to add and then select the project in the list of matches.

    注意

    If this change will result in increased project permissions for the team's members, GitHub will prompt you to confirm your choice.

Removing a project from a team

  1. Navigate to your project.

  2. In the top-right, click to open the menu.

    Screenshot showing a project's menu bar. The menu icon is highlighted with an orange outline.

  3. In the menu, click Settings to access the project settings.

  4. Click Manage access.

  5. Next to the team that you want to remove from the project, click Remove.

Further reading