This question already has an answer here:
- A way to restrict Git branch access? 9 answers
Is there a way to restrict access to certain branches within a repository? We have production and master branches which sometimes get messed up with rogue pushes.
Not with GitHub in the same repo.(as opposed to local repos, which can be protected by an authorization layer like gitolite)
You could have:
Update: I still prefer having two repos, but you now (Sept. 2015) can protect a branch on GitHub.
See "How to protect “master” in github?".