Hi,
I always forget those damn commands for adding and deleting submodules from a GIT repository. I thought it might be wise to put those commands on my website, for future reference.
git submodule add https://github.com/dukeofharen/Ducode.Essentials
If you've already checked out your repository, but haven't pulled the submodules yet, execute the following command.
git submodule update --init --recursive
git submodule update --remote
Source: https://gist.github.com/myusuf3/7f645819ded92bda6677
git submodule deinit <path_to_submodule>
git rm <path_to_submodule>
git commit-m "Removed submodule "
rm -rf .git/modules/<path_to_submodule>