Zuriar
Zuriar

Reputation: 11774

Limit a collaborator to only push to a specific branch

Is it possible to set up a collaborator to only pull/push from a specific branch. Or for that matter, not be able to make changes to Master?

Upvotes: 3

Views: 2245

Answers (2)

Slawomir Jaranowski
Slawomir Jaranowski

Reputation: 8557

If your repository belongs to an organization, you can enable branch restrictions settings and choose who can push to restricted branches.

https://help.github.com/articles/about-branch-restrictions/

https://help.github.com/articles/enabling-branch-restrictions/

Upvotes: 1

CQM
CQM

Reputation: 44278

Revoke write access completely and make them fork the repository and submit pull requests.

Upvotes: 2

Related Questions