Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling other github users to only fork my private repository and send me pull requests

Is that make sense to enable other GitHub users to only fork my private repository and send me pull requests. I don't want them to push changes directly to my private repo.

What I am struggling here is that a user cannot see my private repo which is a good thing. Then, I add the user as collaborator to my repo and that user now has push access to that private repo which is a bad thing.

It would also work for me if there is chance to give a user only access to specific branches for my private repo.

Any thought on that?

like image 879
tugberk Avatar asked Dec 28 '11 20:12

tugberk


1 Answers

I think you will need an "organisation" plan for your account to do that. If you have an organisation, you can define teams. Teams can different privileges for repos like read-only. You would need to set up two teams and two repos. Your base repo would have one team only being able to read it, but not write to it. The child repo would have both teams with read access to it.

I'm not aware that something like that is possible with the commercial but non-organisation account plans.

like image 199
Sebi Avatar answered Nov 05 '22 13:11

Sebi