123k views
0 votes
How to add someone to a github repo

User Faten
by
7.6k points

1 Answer

5 votes

Final answer:

To add someone to a GitHub repository, you need admin rights. Navigate to the repository, access Settings, go to Collaborators, add the username, then send an invitation that the user must accept.

Step-by-step explanation:

To add someone to a GitHub repository, you must have admin access to the repository. Here are the steps to follow: Navigate to the main page of the repository on GitHub. Click on the “Settings” tab, which is located on the right side of the navigation bar at the top of the repository page. On the left sidebar, click on the “Collaborators” section.

In the “Collaborators” section, enter the GitHub username of the person you wish to add in the “Add collaborator” field. After entering the username, click on the “Add collaborator” button to send an invitation. The invited user will receive an email with the invitation and will need to accept it to gain access to the repository. Once the user accepts the invitation, they will have collaboration permissions, which typically include the ability to push commits, create branches, and open pull requests.

User MoominTroll
by
8.0k points