git submodule
Initialize, update or inspect submodules
Subcommands
Name | Description |
---|
add | Add the given repository as a submodule at the given path to the changeset to be committed next to the current project |
status | Show the status of the submodules |
init | Initialize the submodules recorded in the index |
deinit | Unregister the given submodules |
update | Update the registered submodules to match what the superproject expects by cloning missing submodules, fetching missing commits in submodules and updating the working tree of the submodules |
set-branch | Sets the default remote tracking branch for the submodule |
set-url | Sets the URL of the specified submodule to <newurl> |
summary | Show commit summary between the given commit (defaults to HEAD) and working tree/index |
foreach | Evaluates an arbitrary shell command in each checked out submodule |
sync | Synchronizes submodules' remote URL configuration setting to the value specified in .gitmodules |
absorbgitdirs | If a git directory of a submodule is inside the submodule, move the git directory of the submodule into its superproject’s $GIT_DIR/modules path and then connect the git directory and its working directory by setting the core.worktree and adding a .git file pointing to the git directory embedded in the superprojects git directory |
Options
Name | Description |
---|
-q, --quiet | Only print error messages |
--cached | The commit stored in the index is used instead |