본문 바로가기

Developer/GitHub

Github 협업 시작하기

How can we work on a project with multiple team members at the same time?

IT projects are often confidential and access to the code should be provided only to the individuals who are involved in the project. With this being said, in GitHub, individuals are allowed to add collaborators for a project in a private repository. Here, adding collaborators in a private repository make the code accessible only for the individuals who are involved in the project. Therefore, in this blog, I will be providing a detailed procedure for adding collaborators in a private repository in GitHub.

 

Stepwise Procedure for Adding Collaborators in a Private Repository in GitHub

Step 1: Select the repository in which you are willing to add the collaborators.

Step 2: After you have selected the repository, click on ‘Settings’ as shown in the image below.

Step 3: In ‘Settings’, on your left-hand sidebar, click on ‘Manage access’.

Step 4: Now, click on ‘Invite a collaborator’ button as shown in the image below.

Note: To add a collaborator in a repository you should either know the collaborator's ‘email address’ or the ‘username’ in GitHub

Note: Get the ‘username’ or ‘email’ of the member who should be added as a collaborator in the GitHub repository. You can obtain the username by clicking on the profile icon as shown in the image below.

Step 5: Provide the ‘username’ or ‘email’ of the team member who should be added as a collaborator in the GitHub repository. Here, in the image below, the ‘username’ of the collaborator is being provided.

Step 6: Click on the ‘Add httandukarstudent to positivestud-static-website’ button as shown in the image below. In the button, ‘httandukarstudent’ refers to the name of the collaborator and ‘positivestud-static-website’ refers to the name of the repository.

Step 7: Now, the collaborator should accept the invitation. If the collaborator has not accepted the invitation than ‘Pending Invite’ is shown in the name of the collaborator.

 

Stepwise Procedure to be Followed by a Team Member for accepting the invitation as a collaborator in GitHub

The invitation for being a collaborator in the GitHub repository is sent via Gmail.

Step 1: Open Gmail and click on the mail which comprises of invitation for being a collaborator.

Step 2: Click on the ‘View Invitation’ button as shown in the image below.

Step 3: Now, you are redirected to your GitHub account. Here, click on the ‘Accept invitation’ button as shown in the image below.

 

After the invitation is accepted the team member is shown as a ‘Collaborator’ as shown in the image below.

 

출처 : positive-stud.medium.com/add-collaborators-in-the-private-repository-in-github-step-by-step-guide-cbb683dda371