I have four branches in my git repository, which is managed using GitHub:
As with GitLab, so does BitBucket.org have a branch restriction feature.
http://blog.bitbucket.org/2013/09/16/take-control-with-branch-restrictions/