I'm new to Git and SourceTree and trying to evaluate it for use in our projects.
We have several product platforms that use 'shared' utilities/code, so I would like to create a repository with a sub-module for the shared source that can have different privileges than the project files. But, I would like the project files for a given project to pull the 'shared code' from the sub-module(s) when cloned / pulled.
Am I even attempting to di this in the right way (sub-modules and project folders)? Is there a 'preferred' way to do this ?
Thank you, Burt
Hi Burt,
SourceTree is only a client to access your Git repo. If you want to manage who has privileges to access/push different pieces of code into your repo, you should do this on your Git Server. On Git, the sub-modules which you are looking for would be the branches from your repo.
In case you are using (or planning to use) Bitbucket Cloud, on this documentation you will find how to restrict some permissions:
https://confluence.atlassian.com/bitbucket/branch-management-385912271.html
In case you are using Bitbucket Server (old Stash), we have a similar documentation:
https://confluence.atlassian.com/bitbucketserver/using-branch-permissions-776639807.html
Another useful feature to make easier you manage permissions to your repo would be creating Teams. Check out:
https://confluence.atlassian.com/bitbucket/creating-and-managing-team-repositories-665225545.html
Hope this helps.
Regards,
Renato Rudnicki
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.