Skip to main content
我们经常发布文档更新,此页面的翻译可能仍在进行中。 有关最新信息,请访问英语文档

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

邀请协作者参加个人仓库

你可以添加用户作为个人存储库的协作者。

About collaboration in a personal repository

To collaborate with users in a repository that belongs to your personal account on your GitHub Enterprise Server instance, you can invite the users as collaborators.

If you want to grant more granular access to the repository, you can create a repository within an organization. For more information, see "Access permissions on GitHub."

Private forks inherit the permissions structure of the upstream repository. This helps owners of private repositories maintain control over their code. For example, if the upstream repository is private and gives read/write access to a team, then the same team will have read/write access to any forks of the private upstream repository. Only team permissions (not individual permissions) are inherited by private forks.

Inviting a collaborator to a personal repository

You can send an invitation to collaborate in your repository directly to someone on your GitHub Enterprise Server instance.

  1. Ask for the username of the person you're inviting as a collaborator.

  2. On your GitHub Enterprise Server instance, navigate to the main page of the repository.

  3. Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

    Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.

  4. In the left sidebar, click Collaborators. Repository settings sidebar with Collaborators highlighted

  5. Under "Collaborators", start typing the collaborator's username.

  6. Select the collaborator's username from the drop-down menu. Collaborator list drop-down menu

  7. Click Add collaborator. "Add collaborator" button

Further reading