I want to make a repository public, but I only want it to be public for the Master branch. We may have things in the branches we don't want everyone to see, or if a developer hardcodes a password or some other thing that isn't going to make it into the master code that we don't want general users to be able to read.
Hi Richard,
Welcome to the Atlassian Community.
Git/Bitbucket does not have a functionality that allows you to set permissions on who can view specific branches. A branch in Git is just a pointer to commits.
One workaround would be to have two repositories, and the public one would only have the master branch that you update every time your private repository merged anything to master.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.