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).
The hooks you are looking for are pre-receive and update - the former is run once per push, the latter once per branch per push; but importantly, these are hooks on the server side.