Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can we restrict the feature development to certain folders


I have a quick question. I want to create a repository system in which I want to keep structure like this.

1. Master from this version we create releases.

2. Development-> Current development tasks goes into this folder.

3. Feature will be created as a branch from development. I want my development team to be able to branch out certain folders only.Like I have 100 folders and out of those I only want the development team to have access to two folders only. Is their a way I can achieve this.

1 answer

0 votes

Hello @Saad_ur_Rehman_Mohsin ,

Welcome to the Community.

No, there's no such directory-level restriction mechanism in Bitbucket. You can restrict access to certain branches, but there's nothing at the repository file structure level. It sounds like those 98 folders should rather be in separate repository(-ies) which your dev team shouldn't have access to?

Hope this helps.


Is it better that I create sub modules and then merge those or create separate repo as the data is eventually going to merge in the remaining 98 folders to get the project completed

Whatever fits your workflow better, I can't give any advice on this, sorry. Submodules are backed by external repositories, so there's not much difference in terms of configuring access policies.


I am trying to find a good tutorial on creating and managing submodules with bit bucket but not finding any. Can you please share a good tutorial

There's nothing very specific about submodules in Bitbucket, so here's a good tutorial on Git submodules in general. There's also an alternative solution which might be a better fit – Git subtree.

Hope this helps.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

485 views 5 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you