Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I give access to a private GitHub repository?

Tags:

github

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.

like image 256
user1253887 Avatar asked Jun 04 '12 18:06

user1253887


People also ask

How do I allow people to see my private repository?

Public/Private can be set in the settings of a repository. You'll find the option in the "Danger Zone". If you are not the owner of the repository the option will be greyed out. If you don't want to make the repository public you could add a collaborator.

Can people access private GitHub?

Private repositories are only accessible to you, people you explicitly share access with, and, for organization repositories, certain organization members.


2 Answers

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.

like image 124
Arthur Clemens Avatar answered Sep 21 '22 06:09

Arthur Clemens


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

like image 25
sauravjoshi23 Avatar answered Sep 20 '22 06:09

sauravjoshi23