Then, when this question was submitted, GitHub did not allow you to specify branch level permissions. You can only do this at the repository level. So what you request was impossible.
If you want to get around this limitation, I personally see two options:
- you could use some kind of commit commit, etc. to at least tell someone that something went wrong.
- If you really need this tight control, you can use two repositories, one of which contains only your "leading" branch. Then you will need to make sure that only your "guy" gets write access to the main repository
I think itβs easier to solve with some organization. In my team, we never click anything on the master, but instead always create pull requests. This ensures that at least someone will look before the code is merged, and you can also define a policy that only your βguyβ can combine traction requests.
Update
GitHub has now announced that they will be introducing a new feature called secure branches. This feature has been present in other git distributions such as Atlassian Stash for many years. This will allow you to protect some branches from tremors. However, it still does not fully protect individual branches based on ACLs. Thus, you can test this function in case you do not want to rely on an organizational solution, as shown above.
Sebi May 22 '12 at 13:53 2012-05-22 13:53
source share