So at a high level, we have multiple projects/solutions in company and we need to keep them in 1 source control. Since the number of projects is around 50, we are not creating individual repositories for each of them but instead are all in same repository. Our branches reflect the environments which is Dev, QCT, STG, PRD.
Having said that, which of the below 2 options should be good for us:
- Each project has its own folder inside which different branches are created
- Core repository starts with branches inside which are folders for all project
Any experience based input with these 2 strategies would be greatly appreciated. Even if its a blog or some other place where this discussion has happened would be nice.
EDIT: Just to be clear, i am not asking whether to create branches or not and to create them for each feature or not. We have already defined we are going to work with 4 branches representing our environments. The question is the location of those branches. Should those branches be inside the project for each project or at a global scale.
The one difference for me is inside project branches has more management burden but also allows better control over branch and script control for just that project.