I am using git submodules for the first time; so this might be obvious but I don't know how to solve it yet.
Background : I am creating a common repository to be included as a submodule for multiple projects. These projects and the submodule have several development branches and I would like a specific branch of the project to point to a specific branch in the submodule. I don't mind setting up CI with a script to automate this. For example, branches for,
Project A : master, A-1, A-2
Project B : master, B-1, B-2
Submodule : master, A-1, A-2, B-1, B-2
Questions : Is this even possible? Is submodule the right choice for this case? If yes, how do I set it up?
Thanks in advance!