To add a submodule, first move to the container directory, and type this.
git submodule add http://...
To sync the submodule working tree files to current branch'es current commit, type this.
git submodule update
To remove a submodule, move to the container directory and type this.
git submodule deinit ./your_submodule...
git rm ./your_submodule...
Don't forget to rm
the submodule directory. Otherwise the submodule will become a
wondering zombie, and it's far harder to treat.