SUMMARY The git submodule which is used by ansible-pull when cloning the inventory repo is fixed to either initializing submodules recursively or not initializing submodules and doesn't support just initializing the first level of submod...
This option is only valid for foreach, update, status and sync commands. Traverse submodules recursively. The operation is performed not only in the submodules of the current repo, but also in any nested submodules inside those submodules (and so on). ...
See git-clone[1]. clone.filterSubmodules If a partial clone filter is provided (see --filter in git-rev-list[1]) and --recurse-submodules is used, also apply the filter to submodules. color.advice A boolean to enable/disable color in hints (e.g. when a push failed, see advice...
... git submodule sync --recursive git submodule foreach --recursive git clean -ffxd git submodule foreach --recursive git reset --hard git submodule update --init --recursive ... What this does is: Update all the submodules' URLs, recursively Recursively remove any untracked files in th...
git clone --recurse-submodules[=<pathspec]: After the clone is created, initialize and clone submodules within based on the provided pathspec (or all submodules if no pathspec is given). This may be a good option if you are cloning a repository that you know to have submodules, and you...
* "git clone --filter=... --recurse-submodules" only makes the top-level a partial clone, while submodules are fully cloned. This behaviour is changed to pass the same filter down to the submodules. * With the fixes for CVE-2022-24765 that are common with versions of ...
msgid "Recursively clone submodules too" msgstr "" #: lib/choose_repository.tcl:594 lib/choose_repository.tcl:641 #: lib/choose_repository.tcl:790 lib/choose_repository.tcl:864 #: lib/choose_repository.tcl:1145 lib/choose_repository.tcl:1153 #, tcl-format msgid "Not a Git reposit...
#: git-submodule.sh:109 #, sh-format msgid "No submodule mapping found in .gitmodules for path '$sm_path'" msgstr "" #: git-submodule.sh:150 #, sh-format msgid "Clone of '$url' into submodule path '$sm_path' failed" msgstr "" #: git-submodule.sh:160 #, sh-fo...
我怀疑您需要一个脚本,因为一行程序有点太复杂了。使用git submodule foreach:
update Update the registered submodules, i.e. clone missing submodules and checkout the commit specified in the index of the containing repository. This will make the submodules HEAD be detached unless --rebase or --merge is specified or the key submodule.$name.update is set to rebase, ...