Hacker News new | ask | show | jobs
by suzzer99 1913 days ago
They are a pain but they come in handy for us.

The main thing I learned is if you mess up any part of your submodule during creation - do not try to fix it. Just delete it from the parent repo and start over.

Also do not bother deleting it using git commands. Delete it in the .gitmodules file, then search your .git folder for every reference of the repo you want to delete (including folders named after it) and delete everything.

Either that or start with a clean parent repo clone.