Git · Middle · Question 27 of 75
What is a Git submodule?
- ✓Correct answer: Another repository pinned at a commit inside yours
- 2A subfolder that Git compresses and stores separately
- 3A branch that lives inside another branch's folder
Explanation
The parent stores only the URL and commit hash. Clones need --recurse-submodules, and updating means committing a new pinned hash, which is why many teams prefer packages or monorepos.