Clone a git repository having submodules
suggest changeWhen you clone a repository that uses submodules, you’ll need to initialize and update them.
$ git clone --recursive https://github.com/username/repo.git
This will clone the referenced submodules and place them in the appropriate folders (including submodules within submodules). This is equivalent to running git submodule update --init --recursive
immediately after the clone is finished.
Found a mistake? Have a question or improvement idea?
Let me know.
Clone a git repository having submodules
Table Of Contents
4 Undoing
5 Staging
6 Git diff
7 Merging
10 Submodules
11 Aliases
12 Rebasing
14 Branching
15 rev-list
16 Squashing
18 Recovering
19 git clean
21 .mailmap
23 Pulling
24 Hooks
26 Stashing
27 Subtrees
28 Renaming
29 Pushing
30 Internals
31 git-tfs
33 git-svn
34 Archive
37 Show
39 Bundles
42 Blaming
44 Worktrees
45 Git remote
47 git patch
52 TortoiseGit
57 Git rerer
59 git tagging
61 diff tree
62 Contributors