I have a project X which already has submodules A, B and C. Now I want to add submodule D but it also contains its own submodule A. Is there any way to prevent having 2 As in the whole tree? If someone clones my main project (recursively) I want it to contain A, B, C and D without its own A.
this question is similar however the solution (--depth
) limits amount of downloaded history while I want to limit "submodule recursion depth".