How to automatically update the .gitmodules file using Python. Convention Conventionally if we want to add a nested GitHub module, we use the snippet git submodule add <module url> <directory> Multiple Nested Repositories However, if we have several submodules we have forgotten to initialise, we have two options — add them manually or automate…