From cbc1eb847413e8492e35494efc43808b0f38c9bb Mon Sep 17 00:00:00 2001 From: AndreiCherniaev Date: Mon, 11 Sep 2023 14:09:13 +0900 Subject: [PATCH] Add how to use remote-submodules Thanks https://stackoverflow.com/a/3797061/7915017 --- book/07-git-tools/sections/submodules.asc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/07-git-tools/sections/submodules.asc b/book/07-git-tools/sections/submodules.asc index 47096120a..293c379d9 100644 --- a/book/07-git-tools/sections/submodules.asc +++ b/book/07-git-tools/sections/submodules.asc @@ -185,7 +185,7 @@ Submodule path 'DbConnector': checked out 'c3f01dc8862123d317dd46284b05b6892c7b2 Now your `DbConnector` subdirectory is at the exact state it was in when you committed earlier. There is another way to do this which is a little simpler, however. -If you pass `--recurse-submodules` to the `git clone` command, it will automatically initialize and update each submodule in the repository, including nested submodules if any of the submodules in the repository have submodules themselves. +If you pass `--recurse-submodules` to the `git clone` command, it will automatically initialize and update each submodule in the repository, including nested submodules if any of the submodules in the repository have submodules themselves. If you also want to update the submodules to their latest revision then add `--remote-submodules`. [source,console] ----