Skip to content

Commit 586692a

Browse files
authored
Merge pull request #928 from mdbrlh/update-recursive-clone-option
Update --recursive to --recurse-submodules
2 parents 6e09183 + dc9f776 commit 586692a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

book/07-git-tools/sections/submodules.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ Submodule path 'DbConnector': checked out 'c3f01dc8862123d317dd46284b05b6892c7b2
185185
Now your `DbConnector` subdirectory is at the exact state it was in when you committed earlier.
186186

187187
There is another way to do this which is a little simpler, however.
188-
If you pass `--recursive` to the `git clone` command, it will automatically initialize and update each submodule in the repository.
188+
If you pass `--recurse-submodules` to the `git clone` command, it will automatically initialize and update each submodule in the repository.
189189

190190
[source,console]
191191
----
192-
$ git clone --recursive https://github.com/chaconinc/MainProject
192+
$ git clone --recurse-submodules https://github.com/chaconinc/MainProject
193193
Cloning into 'MainProject'...
194194
remote: Counting objects: 14, done.
195195
remote: Compressing objects: 100% (13/13), done.

book/C-git-commands/1-git-commands.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ In <<_getting_git_on_a_server>> we look at using the `--bare` option to create a
7171

7272
In <<_bundling>> we use it to unbundle a bundled Git repository.
7373

74-
Finally, in <<_cloning_submodules>> we learn the `--recursive` option to make cloning a repository with submodules a little simpler.
74+
Finally, in <<_cloning_submodules>> we learn the `--recurse-submodules` option to make cloning a repository with submodules a little simpler.
7575

7676
Though it's used in many other places through the book, these are the ones that are somewhat unique or where it is used in ways that are a little different.
7777

0 commit comments

Comments
 (0)