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. In the top right corner of GitHub Enterprise, click your profile photo, then click Your profile. Profile photo

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

  3. Under your organization name, click People. The People tab

  4. Under the "People" tab, click Outside collaborators. select-outside-collaborators

  5. To the right of the username of the person you want to remove, click Manage access.

  6. Under the username of the person you want to remove, click Remove from all repositories. Remove from all repositories button under username
  7. To confirm, click Remove outside collaborator.

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. In the top right corner of GitHub Enterprise, click your profile photo, then click Your profile. Profile photo

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

  3. Under your organization name, click People. The People tab

  4. Under the "People" tab, click Outside collaborators. select-outside-collaborators

  5. To the right of the username of the person you want to remove, click Manage access.

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

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

Further reading