I have a superproject where I have added a number of projects as submodules. These projects are part of a microservices architecture. The idea of using a superproject with (microservices) projects added as submodules is to be able to get all the projects in a single repository.
Another use case is to track the changes of all the projects. The idea was to branch the superproject, such that each branch would create a sort of a 'snapshot' of all the projects at a given time.
However, I found that whenever I create a new branch and update the submodules (git submodules update --remote
), all the branches of the superproject gets updated. This is expected, as submodules are merely a link to the original project.
Now my question is, is there a strategy for me to take snapshots of a superproject? The way we can branch off a single project, is there such a way to do it for a submodule superproject?
Thank you.