I love working with git, since I started toying around with it a few months back, and find it to be a far superior version control system to subversion.
Anyhow, working with submodules, it's quite easy to add, init and sync, so you keep your sub-projects in-tact and up-to-date. But what if you want to remove a submodule? I found that it isn't exactly an elegant process, but after some googling, this is what you should do:
- In your project's root path, nano .gitmodules and delete any references to that sub-module.
- nano .git/config and do the same.
- Run git rm --cached /LOCATION/SUB_MODULE_FOLDER
- Run git commit to commit any untracked stuff.