pull/this/repo
RoundupGit, GitHub and developer tools#github#how-to#git

How to add collaborators to a GitHub repo (and what they can do)

By Pull This RepoPosted 4 min read

Short answer

To add collaborators on GitHub, open the repo, click Settings, then Collaborators in the Access section of the sidebar, click Add people, pick the person and click Add NAME to REPOSITORY. They get an email invite and gain access once they accept. On GitHub Free you can add unlimited collaborators to public and private repos.

RoundupHow to add collaborators to a GitHub repo (and what they can do)

How to add collaborators on GitHub comes down to one settings page: you invite people by username or email from the repo's Collaborators page, and they get access when they accept. What they can do then depends on who owns the repo. On a personal account, every collaborator gets the same push access. In an organization, you pick a role for each person or team. This page walks through both, plus the limits and how to remove someone. Steps were checked against GitHub's docs on 22 November 2026.

How do you add a collaborator to a GitHub repo?

You need the person's GitHub username or email address, and you must own the repo. Then:

  1. Open the repo's main page on GitHub.
  2. Click Settings under the repo name. If you cannot see it, open the ... dropdown menu and click Settings.
  3. In the Access section of the left sidebar, click Collaborators.
  4. Click Add people.
  5. Start typing their name in the search field and click them in the list of matches.
  6. Click Add NAME to REPOSITORY.

If the person has no GitHub account yet, they need to sign up first. GitHub's docs also say you can invite someone directly by their email address.

How does the GitHub invite collaborator flow work?

The person gets an email invitation, and access starts only when they accept it. GitHub's REST API docs say an invitee can accept or decline from their notifications page, from the email, or through the API. Until they accept, they have no collaborator access, so a private repo stays out of their reach.

If they never got the email, check they gave you the username or email tied to their GitHub account, and look in their GitHub notifications. You can send up to 50 invitations to one repo in a 24 hour period, according to the REST API docs.

What can a collaborator do on a personal repo?

A collaborator on a personal account repo can read and push code, and handle most day-to-day project work. GitHub's permission reference lists, among other things:

  • pull (read) and push (write) to the repo, and fork it
  • create, merge and close pull requests, and review them
  • open, assign, close and reopen issues, and manage labels and milestones
  • create and edit releases and the wiki
  • rename branches other than the default branch
  • remove themselves as a collaborator

Some powers stay with the owner only. The same reference lists inviting collaborators, changing the repo's visibility, renaming the default branch, managing webhooks and deploy keys, archiving and deleting the repo among the owner's actions.

Can you set collaborator permissions on a personal repo?

No. GitHub's docs say collaborators "can't have read-only access to repositories owned by a personal account", and that in a private repo owners "can only grant write access". Everyone you add gets the same level. If you need someone who can only read, or only triage issues, the docs point you to an organization, where every person gets a role.

How do GitHub collaborator permissions work in an organization?

Organization repos use roles. GitHub lists six, from least to most access:

RoleGitHub's description, shortened
Readnon-code contributors who view or discuss the project
Triagemanage issues, discussions and pull requests without write access
Moderatemoderate and edit issues and discussions, manage pull requests, without write access
Writecontributors who actively push to the project
Maintainproject managers who manage the repo without sensitive or destructive actions
Adminfull access, including managing security and deleting the repo

To invite someone to an org repo, the path is almost the same, with a role step. GitHub's docs say: Settings, then Collaborators & teams in the Access section, then Add people or Add teams, pick the person or team, choose a role under Choose a role, and click Add NAME to REPOSITORY. You change a role later from the Role dropdown next to their name under Manage access.

Someone who is not a member of the org becomes an outside collaborator. GitHub's docs say outside collaborators cannot be added to a team, and that unless you are on a free plan, adding one to a private repo uses one of your paid licences. Custom repository roles need GitHub Enterprise Cloud.

Can you add a collaborator from the command line?

Yes, through the REST API, and the GitHub CLI makes the call short. Once you have installed and signed in to gh:

terminal
# invite a collaborator
gh api --method PUT repos/OWNER/REPO/collaborators/USERNAME

# organization repos only: choose the role
gh api --method PUT repos/OWNER/REPO/collaborators/USERNAME -f permission=triage

# list current collaborators
gh api repos/OWNER/REPO/collaborators

The REST docs say the permission field is only valid on organization-owned repos, accepts pull, triage, moderate, push, maintain or admin, and defaults to push. Calling the same endpoint again with a different permission changes an existing collaborator's level.

How do you remove a collaborator?

Open Settings, click Collaborators & teams in the Access section, and click Remove next to the person. They lose read and write access. GitHub's docs say that if the repo is private and they created a fork, the fork is deleted, but any local clones they made stay on their machine.

What is the catch?

Adding a collaborator on a personal repo is all or nothing: every collaborator can push to it, so only invite people you would trust with write access. For anything finer, an organization gives you roles. If you are still working out what GitHub is for beyond storing code, our guide on what GitHub is used for covers the basics, and the Git cheat sheet has the commands your new collaborators will need.

Pull it. Stash it.

Questions people ask

How many collaborators can I add on GitHub Free?

Unlimited. GitHub's docs say that with GitHub Free you can add unlimited collaborators on public and private repositories. The REST API docs add a separate rate limit: you can send 50 invitations to a repository per 24 hour period, with no limit when inviting organization members to an organization repository.

Can I give a collaborator read-only access to my repo?

Not on a repo owned by a personal account. GitHub's docs say collaborators on those repos cannot have read-only access, and that in a private repo owners can only grant write access. For Read, Triage or other roles, move the repo into an organization, where each person or team gets a role.

Why can't the person I invited see my repo?

They have not accepted the invitation yet. GitHub sends an email, and the invite also appears in their notifications. Access starts only after they accept. Ask them to check the email for their GitHub account, or invite them again by username from the Collaborators page.

What happens when I remove a collaborator?

They lose read and write access to the repo. GitHub's docs say that if the repo is private and they made a fork, that fork is deleted too. Any local clones they already made stay on their computer, so removing someone does not take back code they downloaded.

Sources

  1. 1GitHub Docs: Inviting collaborators to a personal repository (read 2026-11-22)
  2. 2GitHub Docs: Permission levels for a personal account repository (read 2026-11-22)
  3. 3GitHub Docs: Removing a collaborator from a personal repository (read 2026-11-22)
  4. 4GitHub Docs: Managing teams and people with access to your repository (read 2026-11-22)
  5. 5GitHub Docs: Repository roles for an organization (read 2026-11-22)
  6. 6GitHub Docs: Adding outside collaborators to repositories in your organization (read 2026-11-22)
  7. 7GitHub Docs: GitHub's plans (read 2026-11-22)
  8. 8GitHub REST API docs: Collaborators (read 2026-11-22)
  9. 9GitHub CLI manual: gh api (read 2026-11-22)

Get tomorrow's repo in your feed

One free, open source repo a day as a short video, shown working, with the catch named. Pull it. Stash it.