Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we restrict the feature development to certain folders

Saad ur Rehman Mohsin March 30, 2020

HI,

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
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 31, 2020

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.

Cheers,
Daniil

Saad ur Rehman Mohsin April 1, 2020

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

Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 1, 2020

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.

Cheers,
Daniil

Saad ur Rehman Mohsin April 3, 2020

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

Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 3, 2020

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.

Cheers,
Daniil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events