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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.