I\'m actually trying to learn how to use git, including the git submodule
subcommands.
I already set up a server on which I can host, push and pull git reposito
You can do this while cloning your submodule:
git submodule add --name submodule_name submodule path
This will add your submodule into your project and will be added as a structure under .gitmodules
file.
And then if you don't want the older one you can remove it from .gitmodules
structure and delete the submodule folder from the project.