Skip to main content

How to add a collaborator to a GitHub repository

How to Add a Collaborator on GitHub

Collaborating on a project is one of GitHub’s core features. Adding a collaborator to your repository allows you to share your project with others, enabling them to contribute. Here's a step-by-step guide with screenshots to help you add a collaborator to your GitHub repository.


Step 1: Open Your Repository

  1. Log in to your GitHub account.
  2. Navigate to the repository where you want to add a collaborator.

alt text


Step 2: Go to the Repository Settings

  1. Click on the Settings tab located at the top of your repository page.

alt text


Step 3: Access the Collaborators Section

  1. In the Settings sidebar, click on Collaborators and teams under the “Access” section.

alt text


Step 4: Add a Collaborator

  1. Under the "Collaborators" section, click on the Add people button.
  2. Enter the username, email address, or full name of the person you want to add.

alt text


Step 5: Send an Invitation

  1. Once you find the person, click the Add button next to their name.
  2. The collaborator will receive an email invitation to join the repository. They must accept this invitation to gain access.

alt text


Step 6: Confirm the Collaboration

  1. After the collaborator accepts the invitation, their status will change to Collaborator in the "Collaborators" section.

alt text


Important Notes

  • Private Repositories: Adding a collaborator to a private repository will give them access to view and modify the code.
  • Permissions: By default, collaborators have write access. You can customize their permissions in the "Manage Access" section.
  • Security: Only add trusted collaborators to your repository.

By following these steps, you can easily add collaborators to your GitHub repository and start working together on your project. Happy coding!