Owners and repository admins can remove an outside collaborator's access to a repository.

While forks of private repositories are deleted when a collaborator is removed, the person will still retain any local clones of your repository.

Removing outside collaborators from all repositories in an organization

  1. Profile photoIn the top right corner of GitHub Enterprise, click your profile photo, then click Your profile.

  2. organization iconsOn the left side of your profile page, under "Organizations", click the icon for your organization.

  3. The People tabUnder your organization name, click People.

  4. Button to select outside collaborators for an organizationUnder the "People" tab, click Outside collaborators.

  5. List of outside collaborators with two outside collaborators selectedSelect the outside collaborator or outside collaborators you'd like to remove from the organization.

  6. Drop-down menu with option to remove outside collaborators Above the list of outside collaborators, use the drop-down menu, and click Remove from all repositories.
  7. List of outside collaborators who will be removed and Remove outside collaborators buttonReview the outside collaborator or outside collaborators who will be removed from the organization, then click Remove outside collaborators.

Removing an outside collaborator from a particular repository in an organization

If you only want to remove an outside collaborator from certain repositories in your organization, you can remove this person's access to one specific repository at a time.

  1. Profile photoIn the top right corner of GitHub Enterprise, click your profile photo, then click Your profile.

  2. organization iconsOn the left side of your profile page, under "Organizations", click the icon for your organization.

  3. The People tabUnder your organization name, click People.

  4. Button to select outside collaborators for an organizationUnder the "People" tab, click Outside collaborators.

  5. Manage access buttonTo the right of the username of the person you want to remove, use the drop-down menu, and click Manage.

  6. Select manage access button next to a repository the outside collaborator has access toTo the right of the repository that you want to remove the outside collaborator from, click Manage access.

  7. Remove access to this repository buttonTo completely remove the outside collaborator's access to the repository, in the upper right corner, click Remove access to this repository.
  8. Confirm outside collaborator who will be removed from the repositoryTo confirm, click Remove access.

Further reading