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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Git submodules

Git submodules

Related news:

News photo

Show HN: Vdm, a sane alternative to e.g. Git submodules