Skip to main content

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

Adding outside collaborators to repositories in your organization

You can allow people who aren't members of your organization to access repositories that your organization owns.

Who can use this feature

People with admin access to a repository can add an outside collaborator to the repository.

About outside collaborators

An outside collaborator is a person who is not a member of your organization, but has access to one or more of your organization's repositories. You can choose the level of access to grant for each outside collaborator. 将外部协作者添� 仓库时,还需要将他们添� 到您希望他们访问的任何仓库分叉中。

将外部协作者添� 到专用或内部存储库将使用� 的一个付费许可。 有关详细信息,请参阅“关于企业的计费”。

An organization owner can restrict the ability to invite collaborators. For more information, see "Setting permissions for adding outside collaborators."

Before you can add someone as an outside collaborator on a repository, the person must have a personal account on your GitHub Enterprise Server instance. If your enterprise uses an external authentication system such as SAML or LDAP, the person you want to add must sign in through that system to create an account. If the person does not have access to the authentication system and built-in authentication is enabled for your enterprise, a site administrator can create an account for the person. For more information, see "Configuring built-in authentication."

If your organization requires two-factor authentication, all outside collaborators must enable two-factor authentication before accepting your invitation to collaborate on a repository. For more information, see "Requiring two-factor authentication in your organization."

Adding outside collaborators to a repository

  1. On your GitHub Enterprise Server instance, navigate to the main page of the repository.
  2. 在存储库名称下,单击 “设置”。 “存储库设置”按钮
  3. In the left sidebar, click Collaborators & teams. Repository settings sidebar with Collaborators & teams highlighted
  4. Under "Collaborators", type the name of the person you'd like to give access to the repository, then click Add collaborator. The Collaborators section with the Octocat's username entered in the search field
  5. Next to the new collaborator's name, use the drop-down menu and select the appropriate access level. The repository permissions picker