I would like to give read access to my master branch to someone.
I don't want that someone to be able to see and pull all other branches.
How can I go about this?
Will I have to create a brand new repository for this purpose and only provide read access to it? if so, how can I automate the process of copying the master branch to this new repository periodically?
We ended up doing the following:
Once you give a user access to the repo, he can see everything, including other branches and PRs. You can use branch restrictions to prevent updates to othee branches but they will still be able to see them.
An option is to create another repo from the master branch but you will have to use basic git commands to keep them in sync or write an add-on that does it. You can also do something like a simple cron job that does it or have a CI server do that. Nothing out of the box in Bitbucket to do that though.
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.