Git Submodules
Clone parent project with submodules # Pull directly submodules on parent clone git clone --recurse-submodules https://github.com/ftith/ftith.github.io.git # Pull submodules after the parent was already cloned git submodule update --init --recursive Add/Create submodule git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod results to in your .gitmodules: [submodule "themes/PaperMod"] path = themes/PaperMod url = https://github.com/adityatelange/hugo-PaperMod.git You can also use relative path for submodule to inherit its parent’s connection method (ssh or https). If you change directly the .gitmodules files, you need to run ...