I am currently working in a big project that uses a lot of external libraries that are git repositories themselves and need to be added as git submodules.
The problem is that those libraries are not very specific and might include a lot of subdirectories of which I only need one or a few. Example:
Parent repository
- subdirectory 1
- subdirectory 2
- subdirectory 3
- subdirectory 4
- subdirectory 5
- ... so on
All the subdirectories are quite heavy so I don't want to include them unnecesarily.
I've seen you can clone only a specific subdirectory, but I can't figure out how to apply that to a git submodule add command.
Any and all help is appreciated. Thank you!