I have a parent (git) project with a submodule (git).
However, when I update the submodule in the parent/develop branch, the parent/master branch also contains the updated submodule files...
So while I want to test my parent code with the updated submodule code, the updates submodule code already appears in master ... what a disaster... that could create.
What I want is that if I update the submodule in parent/develop branch and switch to parent/master, I still see the submodule files before the update. Only after merging develop into master, the updated submodule files should appear in master.
If I look at this post: https://stackoverflow.com/a/17927655/2940885, it looks like the conclusion is that the files of the submodules are untracked and therefore appearing in any branch I checkout.
Any clue on this?