Make folder private in bitbucket

Is there a way to make a folder in a repository private and only a few users can read and write to that folder? Ideally users without private access to the folder will be able to check out the repository but the private folder will not be present. Only users with access to the folder will be able to checkout the full repository. Is this feasible

1 answer

1 accepted

Hi @Christopher Laurence
unfortunately on a separate folder is not possible to set permissions that differ from the repository permissions  

Thanks for the reply. Do you happen to know if there is a way to keep two separate repositories inline with each other? I'm thinking of having two repositories a public and private. The issue I'm facing is that we have IP code that some people need to see and it is dependent on the public files. 

Put the private code in its own repo.  Don't attempt to replicate the public code.  Possibly look into submodules - I haven't really used them, but I think they'd be applicable to your case.

Thanks Tim, using submodules are a good solution to my issue.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

434 views 6 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you