I have a following mobile project. A repository where code is shared between multiple projects. I'll call this base repository.
In the projects were created branches of this base repo because it was necessary to add a different submodule for each project.
Eg: Project 1. The project1 branch is created in the base repository and the sub1 module sub1 is added. Project 2. Created the project2 branch in the base repository and added the sub2 sub-module.
So ... the difference between the master and the branches in the base is that the branches have submodule. However, throughout the development, branch project1 has been modified and I need to send these modifications to the master and branch project2.
In the master branch and running a git merge project1, it happens that the sub-module of project1 is included in the master, and this can not occur because the master is only to serve as the basis for the projects.
How to solve this?