Get the latest tech news
Demystifying Git Submodules
Demystifying git submodules by showing exactly how they work.
In this article, I’ll explain exactly what I needed to know in order to work with submodules without inflicting self-damage. Well, the usual way I make local modifications go away is git reset --hard, and that didn’t work. In other words, the way git implements submodules is by doing a weird trick where a tree points to a commit.
Or read this on Hacker News