git: How to remove a submodule

You'll need to do 3 things in order to remove the submodule.

In your current working path:

  • Remove any entries for your submodule in ".gitmodules"
  • Remove any entries for your submodule in ".git/config"

Thats the easy bit. Lastly, you'll need to type:

git rm --cached submodule_name

Wish there was an easier way...

[ Source ]

 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog