Git submodule
To add submodule
$ git submodule add <remote_url> <destination_folder>To delete submodule
$ git submodule deinit <path_to_submodule>
Delete the section referring to the submodule from the .gitmodules file
$ git add .gitmodules (to stage changes)
$ git rm --cached <path_to_submodule> (no trailing slash)
$ rm -rf .git/modules/<path_to_submodule>
$ git commit -m "Removed submodule"
$ rm -rf <path_to_submodule>To update submodule
$ git submodule update --init --recursiveReferences
Last updated