I have the following structure for the my project:
-- main_repo
---- sub1
---- sub2
---- sub3
Right now I'm implementing the CI for all projects, and the submodules all depends on the main_repo. I could run this CI from the main repo, but I really like to run it from each repo.
So, I was wondering if the git clone
command can clone the submodule and also the parent repo. Is it possible?
Example:
$ git clone sub1 --clone-parent
Or there is a better solution for this case?