- submodule.<name>.url
-
The URL for a submodule. This variable is copied from the .gitmodules file to the git config via 'git submodule init'. The user can change the configured URL before obtaining the submodule via 'git submodule update'. If neither submodule.<name>.active nor submodule.active are set, the presence of this variable is used as a fallback to indicate whether the submodule is of interest to git commands. See linkgit:git-submodule[1] and linkgit:gitmodules[5] for details.
- submodule.<name>.update
-
The method by which a submodule is updated by 'git submodule update', which is the only affected command, others such as 'git checkout --recurse-submodules' are unaffected. It exists for historical reasons, when 'git submodule' was the only command to interact with submodules; settings like
submodule.activeandpull.rebaseare more specific. It is populated bygit submodule initfrom the linkgit:gitmodules[5] file. See description of 'update' command in linkgit:git-submodule[1]. - submodule.<name>.branch
-
The remote branch name for a submodule, used by
git submodule update --remote. Set this option to override the value found in the.gitmodulesfile. See linkgit:git-submodule[1] and linkgit:gitmodules[5] for details. - submodule.<name>.fetchRecurseSubmodules
-
This option can be used to control recursive fetching of this submodule. It can be overridden by using the --[no-]recurse-submodules command-line option to "git fetch" and "git pull". This setting will override that from in the linkgit:gitmodules[5] file.
- submodule.<name>.ignore
-
Defines under what circumstances "git status" and the diff family show a submodule as modified. Set to "all" will never considered the submodule modified. It can nevertheless be staged using the option --force and it will then show up in the output of status. Set to "dirty" will ignore all changes to the submodule’s work tree and takes only differences between the HEAD of the submodule and the commit recorded in the superproject into account. "untracked" will additionally let submodules with modified tracked files in their work tree show up. Set to "none"(default) It is also shows submodules that have untracked files in their work tree as changed. This setting overrides any setting made in .gitmodules for this submodule, both settings can be overridden on the command line by using the "--ignore-submodules" option. The 'git submodule' commands are not affected by this setting.
- submodule.<name>.active
-
Boolean value indicating if the submodule is of interest to git commands. This config option takes precedence over the submodule.active config option. See linkgit:gitsubmodules[7] for details.
- submodule.active
-
A repeated field which contains a pathspec used to match against a submodule’s path to determine if the submodule is of interest to git commands. See linkgit:gitsubmodules[7] for details.
- submodule.recurse
-
A boolean indicating if commands should enable the
--recurse-submodulesoption by default. Defaults to false.When set to true, it can be deactivated via the
--no-recurse-submodulesoption. Note that some Git commands lacking this option may call some of the above commands affected bysubmodule.recurse; for instancegit remote updatewill callgit fetchbut does not have a--no-recurse-submodulesoption. For these commands a workaround is to temporarily change the configuration value by usinggit -c submodule.recurse=0.The following list shows the commands that accept
--recurse-submodulesand whether they are supported by this setting.-
checkout,fetch,grep,pull,push,read-tree,reset,restoreandswitchare always supported. -
cloneandls-filesare not supported. -
branchis supported only ifsubmodule.propagateBranchesis enabled
-
- submodule.propagateBranches
-
[EXPERIMENTAL] A boolean that enables branching support when using
--recurse-submodulesorsubmodule.recurse=true. Enabling this will allow certain commands to accept--recurse-submodulesand certain commands that already accept--recurse-submoduleswill now consider branches. Defaults to false. - submodule.fetchJobs
-
Specifies how many submodules are fetched/cloned at the same time. A positive integer allows up to that number of submodules fetched in parallel. A value of 0 will give some reasonable default. If unset, it defaults to 1.
- submodule.alternateLocation
-
Specifies how the submodules obtain alternates when submodules are cloned. Possible values are
no,superproject. By defaultnois assumed, which doesn’t add references. When the value is set tosuperprojectthe submodule to be cloned computes its alternates location relative to the superprojects alternate. - submodule.alternateErrorStrategy
-
Specifies how to treat errors with the alternates for a submodule as computed via
submodule.alternateLocation. Possible values areignore,info,die. Default isdie. Note that if set toignoreorinfo, and if there is an error with the computed alternate, the clone proceeds as if no alternate was specified.