4.5. Essential Commands for Submodules#
Here’s a simple overview of the basic commands for working with submodules:
Command |
Description |
---|---|
|
Add a new submodule to the project. |
|
Initialize & update, fetching the latest changes from remote repo. |
|
Check the status of the submodules (in [path]). |
|
Update the submodule to the latest commit on the tracked branch. |
|
Remove a submodule from the parent repository. |
|
Initialize submodules in a cloned repository. |
|
Update the submodules to the commit specified in the parent repo. |