Probably very silly question, - but I\'ve been specifying submodules up until now in .gitmodules file. It recently struck me that perhaps it\'s possible to just use .git/config
The git submodule sync
will update your config file with the details from the .gitmodules file, so the latter should be considered the 'master' - it's passed between repos as stated by @Artefact2.
This is useful when submodule URLs change upstream and you need to update your local repositories accordingly.