102

I have a private git repository and I would like to extend its access to a member of my team. Will I be able to do it through the Github website? I have the username of my member.

I have tried to do this by going through the admin page of the repository but there isn't such an option as I am not the owner.

user229044
  • 232,980
  • 40
  • 330
  • 338
user1253887
  • 1,309
  • 3
  • 11
  • 13

8 Answers8

88

If you are the owner it is simple:

  • Go to your repo and click the Settings button.
  • In the left menu click Collaborators
  • Then Add their name.

Then collaborator should visit this example repo link https://github.com/user/repo/invitations

Source: Github Docs.

rofrol
  • 14,438
  • 7
  • 79
  • 77
Arthur Clemens
  • 2,848
  • 24
  • 18
25

It is a simple 3 Step Process :
1) Go to your private repo and click on settings
2) To the left of the screen click on Manage access
3) Then Click on Invite Collaborator

sauravjoshi23
  • 837
  • 11
  • 9
14

It is a simple 3 Step Process :

  1. Go to your private repo and click on settings
  2. To the left of the screen click on Manage access
  3. Then Click on Invite Collaborator

The invited user needs to be logged in to Github before clicking the invitation link in their email or they'll get a 404 error.

Heres a screenshot of how to do it:

enter image description here

Daniel Selvan
  • 959
  • 10
  • 23
Xaxxus
  • 1,083
  • 12
  • 19
5

Two steps:
1. Login and click "Invite someone" in the right column under "People". Enter and select persons github id.
2. It will then give you the option to "Invite Username to some teams" at which point you simply check off which teams you want to add them to then click "Send Invitation"

Alternatively:
1. Get the persons github id (not their email)
2. Navigate to the repository you would like to add the user to
3. Click "Settings" in the right column (not the gearbox settings along the top)
4. Click Collaborators long the left column
5. Select the repository name
6. Where it reads "Invite or add users to team" add the persons github id
7. An invitation will then be e-mailed.

Please let me know how this worked for you!

chainwork
  • 2,890
  • 4
  • 30
  • 29
4

It is a simple 3 Step Process :

  1. Go to your private repo and click on settings
  2. To the left of the screen click on Manage access
  3. Then Click on Invite Collaborator

This, but also - the invited user needs to be logged in to Github before clicking the invitation link in their email or they'll get a 404 error.

kk.
  • 3,747
  • 12
  • 36
  • 67
2

It´s possible via Github Organizations. You have to create a new account.

https://github.com/organizations/new

Sebastian Keßler
  • 1,043
  • 8
  • 8
1

It's working in 2021,

Though the Repo has to be made private first then the click on
settings => Manage access => Invite Collaborator

The user who gets the repo access has to navigate to the repo and can make changes to the main branch.

Prajwal Raju P
  • 180
  • 1
  • 3
  • 12
-2

Your team members must be accessing the repository using SSH & for that they have to have their ssh key mapped with github account. This will work if they map their ssh key with github account and also the repository has public rights, which they want to access.

StackUser
  • 141
  • 1
  • 1
  • 8
  • You shouldn't write this like its the only way to do this, Although this can be achieved its cumbersome at best at the alternatives are easier and fast, offer both if you want to provide a thorough solution – Cacoon Jan 10 '18 at 01:30