0
0
Gitdevops~10 mins

Cloning with submodules in Git - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to clone a repository including its submodules.

Git
git clone --[1] <repository-url>
Drag options to blanks, or click blank then click option'
Arecursive
Bsubmodules
Cmodules
Drecurse-submodules
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to include any submodule option
Using --modules which is not a valid option
2fill in blank
medium

Complete the command to initialize submodules after cloning without --recurse-submodules.

Git
git submodule [1]
Drag options to blanks, or click blank then click option'
Aupdate
Bclone
Cinit
Dfetch
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update' instead of 'init' first
Trying to clone submodules directly
Using 'fetch' instead of 'init'
3fill in blank
hard

Fix the error in the command to update submodules recursively.

Git
git submodule update --[1]
Drag options to blanks, or click blank then click option'
Arecursive
Brecurse-submodules
Cinit
Dfetch
Attempts:
3 left
💡 Hint
Common Mistakes
Using --init which initializes but does not update
Using --fetch which is not a valid flag for update
4fill in blank
hard

Fill both blanks to clone a repository and initialize submodules manually.

Git
git clone <repo-url> && git submodule [1] && git submodule [2]
Drag options to blanks, or click blank then click option'
Ainit
Bupdate
Cfetch
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Reversing the order of init and update
Using fetch instead of update
Skipping init command
5fill in blank
hard

Fill all three blanks to clone a repo, initialize, and update submodules recursively.

Git
git clone --[1] <repo-url> && git submodule [2] && git submodule update --[3]
Drag options to blanks, or click blank then click option'
Arecurse-submodules
Binit
Crecursive
Dfetch
Attempts:
3 left
💡 Hint
Common Mistakes
Skipping init before update