How to restrict access to the master branch in Git
<p>I have a single repository in which I have two user groups:</p>
<ul>
<li>Administrators</li>
<li>HTML/UI Developers</li>
</ul>
<p>I do not wish to give read/write access of my <code>master</code> branch to my HTML developers as they do not need to work on it and should not be misusing the core code.</p>
<p>Though they need to work on their own branch <code>ui-developers</code>. How do I do this on Git?</p>
<p>P.S.: I am using Bitbucket</p>
<hr/>
<p>I had posted this question when I was extremely new to coding and Git. After two years of experience, I now know that Git doesn't allow to restrict READ access for any particular branch. But services like Bitbucket, GitLab, and GitHub allow you to put write and merge restrictions to branches.</p>
<p>Also, I shifted to GitLab six months back :)</p>