This is possible. The first step is to git clone the common_submodule
so that it is placed next to your first level submodules submodule_a
and submodule_b
.
Now open your project in terminal and move in each of your submodules. Here you go on and add the cloned common_submodule
folder as submodule:
git submodule add ../common_submodule
After you have done this in each of your first level submodules you've achieved what you have been looking for.
Note that you might fist need to delete the common_submodule
in each of your first level submodules, before you re-add it again as described. There are plenty of StackOverflow questions that explain how to do that, e.g. this.