Skip to main content

Inviting collaborators to a personal repository

You can add users as collaborators to your personal repository.

About collaboration in a personal repository

To collaborate with users in a repository that belongs to your personal account on GitHub, 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 GitHub 上的访问权限.

专用分支继承上游存储库的权限结构。 这有助于私有仓库的所有者保持对其代码的控制。 例如,如果上游仓库是私有的,并授予团队读/写访问权限,则同一团队对该私有上游仓库的任何复刻拥有读/写权限。 专用分支仅继承团队权限(而不是个人权限)。

注意

有关详细信息,请参阅“为组织设置基本权限”。

Inviting a collaborator to a personal repository

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

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

  2. 在 GitHub 上,导航到存储库的主页面。

  3. 在存储库名称下,单击 “设置”。 如果看不到“设置”选项卡,请选择“”下拉菜单,然后单击“设置”。

    存储库标头的屏幕截图,其中显示了选项卡。 “设置”选项卡以深橙色边框突出显示。

  4. In the "Access" section of the sidebar, click Collaborators.

  5. Click Add people.

  6. In the search field, start typing the name of person you want to invite, then click a name in the list of matches.

  7. Click Add NAME to REPOSITORY.

Further reading