What does the git submodule command do?
a) Manages external repositories within a Git repository
b) Creates branches for external modules
c) Merges multiple repositories into one
d) Deletes external modules
Answer:
a) Manages external repositories within a Git repository
Explanation:
The git submodule command allows you to manage external repositories within a Git project. It adds other repositories as submodules, enabling you to track and update external code dependencies separately from your main project.
For example, using git submodule add URL adds an external repository as a submodule to your project.
Submodules are useful for projects that rely on external libraries or components that need to be versioned independently.