I have a very long list of repos that I'm trying to make into one parent repo by making them all submodules.
I've tried adding them to .gitmodules
manually, and also to .git/config
, but it doesn't seem to work.
I've also tried running git submodule sync
and git submodule update --init
, etc, but with no luck.
Is there a way to trick git into thinking my project has all its (~30K) submodules, without actually needing to clone them all?
--depth 1
but it would only work once and only if all the submodules connected to the HEAD of those repos. Then any changes might break things. It just doesn't make much sense. Could you describe your situation better and what you want to accomplish. There is probably a different solution. – Monaxial.gitmodules
. If you simply use local submodule references, there're changes that you'll get problems on repo cloning – Whited