How to remove a Submodule from your Git repository

In this short post I’ll share how to do just that. We all know having submodules in Git is very handy. You don’t have to check all of the code in, just the reference and, when needed, initialize them. Traces of submodules When installing a submodule in Git it does a couple of things. It adds a record to your .gitmodules file. When this file doesn’t exist it will create one.