title: Disable push to specific branches on GitHub
body: <p>I have some Git private repositories on a GitHub company account, and I don't want anybody to push on some specific branches (like master, develop and beta or by pattern). I also tried to define some hooks but I want this to be done on GitHub and not done with a pre-push hook on the clients.</p>
  
  <p>So to explain my problem simply, I want:</p>
  
  <pre><code>git push origin develop
  </code></pre>
  
  <p>to be refused by the server (which is <strong>GitHub</strong>) because of the branch name, but I do not want a client check by pre-push hook, I really want GitHub to do the check and refuse it.</p>
  
  <p>Also if it's possible to allow only certain users to do so, but disabling it for everybody would be enough at first.</p>