Intermediate Git & Version Control
Q60 / 100

What is the purpose of "git submodule"?

Correct! Well done.

Incorrect.

The correct answer is A) It allows one Git repository to be embedded as a subdirectory of another repository, while keeping the embedded repository's history and commits separate and independently trackable

A

Correct Answer

It allows one Git repository to be embedded as a subdirectory of another repository, while keeping the embedded repository's history and commits separate and independently trackable

Explanation

Submodules let a project depend on a specific commit of another repository (e.g. a shared library), but they have a reputation for being tricky to use correctly, particularly around updating and cloning.

Progress
60/100