Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restricting users to a branch on GITHUB

Tags:

git

github

We have a situation where we need external contractors to do some work on a project but would like to restrict them to a certain branch on our (private) repository and manage the merging of this branch into the release branches ourselves. Is there a way of restricting users to a single branch of a repository?

like image 686
Clinton Bosch Avatar asked May 28 '12 08:05

Clinton Bosch


1 Answers

Ask that person to fork the project and submit pull request when merging.

Note that their fork will be private, even if their github account is on a free plan.

like image 105
nhahtdh Avatar answered Sep 23 '22 05:09

nhahtdh