I’ve created a template repository(here) which has a git submodule folder in it. But when I try to use the template to create a repository(here), even though the
.gitmodules file exists as expected, the submodule folder “scripts” from the template repository seemingly vanished somehow, and even if the derived repository is cloned, git commands like
git submodule init or
git submodule update don’t work.
I’m not really sure about what could be expected in this scenario as I couldn’t find any relevant docs. Ideally, I would expect the link to the submodule repository to be retained in the derived repository and the cloning process to initialize the submodules automatically, as otherwise, just cloning an ordinary repository and using it becomes an easier process than using a template repository.
So, is it even possible to get submodules to work with template repositories? If so, then I’d like to know how to do that. Thanks in advance!