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
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:
In case you are using Bitbucket Server (old Stash), we have a similar documentation:
Another useful feature to make easier you manage permissions to your repo would be creating Teams. Check out:
Hope this helps.
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
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!
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