When configuring a git submodule, is it possible to reference a path of the submodule?
For example, I have a git repo (e.g. "SomeApp") with src/app/SomeApp
directory in it. I want to add it to MyParent, which has src/app/MyParent
directory in it. If I add a submodule with something like git submodule add -b branch git/me/SomeApp src/app/SomeApp
, then SomeApp is cloned into the target path, and I end up with src/app/SomeApp/src/app/SomeApp
.
Is it possible to map the submodule's src/app/SomeApp
directly to MyParent's src/app
directory, so that both SomeApp and MyParent are there without the extra subdir path on the submod?