Git · Middle · Question 27 of 75

What is a Git submodule?

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.

Further reading

Problem with a question

Git · Middle · question 27

Test yourself

Take the Git · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz