Reputation: 1872
I could not clone the parent project with submodules. Only parent project was cloned.
I tried with
And so many options.
Do I need to configure my Git environment to support submodules?
Here it is repositories I have tried.
https://github.com/chamlyidunil/test-submodule-project
https://github.com/chamlyidunil/common-utility
And it really helps you if you can provide example Git commands for the whole cycle.
My Git version is 2.15.1 (Apple Git-101).
Upvotes: 0
Views: 2717
Reputation: 76459
Your project has a .gitmodules
file, but it doesn't have an actual submodule commit checked in.
If you want to add a submodule, you should use git submodule add
to add the submodule and then commit the result. That will add the submodule commit into the repository, which your repository is lacking at the moment.
So, for example, in your personal clone of the parent project, you'd remove the current .gitmodules
file and run git submodule add https://github.com/chamlyidunil/common-utility.git common-utility
and then commit the result.
Upvotes: 2