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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

31,867 views 26 12
Join discussion

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