Submodule
ELI5 — The Vibe Check
A submodule is a repo inside another repo. It's like embedding someone else's project inside yours. The tricky part is that they update independently — you have to manually sync them. Most developers find submodules confusing and painful.
Real Talk
Git submodules allow you to embed one repository inside another as a subdirectory. The parent repo stores a reference to a specific commit in the submodule. They're useful for shared libraries but notoriously complex to manage.
Show Me The Code
git submodule add https://github.com/user/lib.git
git submodule update --init --recursive
When You'll Hear This
"Initialize the submodules after cloning." / "Submodules are a pain — consider using a package manager instead."
Related Terms
Clone
Clone is like downloading someone's entire project to your computer — all the files, all the history, everything.
Package Manager
A package manager is the app store for your code — it downloads libraries, manages versions, and makes sure everything plays nice together. It's like a gro
Repository (Repo)
A repository (repo) is a folder that Git is watching. It contains all your project files plus the entire history of every change ever made.