0
0
Gitdevops~10 mins

Submodule status and sync 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 check the current status of all git submodules.

Git
git submodule [1]
Drag options to blanks, or click blank then click option'
Astatus
Bsync
Cinit
Dupdate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update' instead of 'status' which changes submodules instead of showing status.
Using 'init' which initializes submodules but does not show status.
2fill in blank
medium

Complete the command to initialize all submodules recursively.

Git
git submodule [1] --recursive
Drag options to blanks, or click blank then click option'
Ainit
Bstatus
Cupdate
Dsync
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update' which fetches and checks out submodules but does not initialize them.
Using 'status' which only shows current submodule commits.
3fill in blank
hard

Fix the error in the command to synchronize submodule URLs from the .gitmodules file.

Git
git submodule [1]
Drag options to blanks, or click blank then click option'
Ainit
Bupdate
Csync
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update' which fetches and checks out submodules but does not sync URLs.
Using 'init' which initializes submodules but does not update URLs.
4fill in blank
hard

Fill both blanks to update all submodules recursively and initialize any new ones.

Git
git submodule [1] --init --[2]
Drag options to blanks, or click blank then click option'
Aupdate
Bstatus
Crecursive
Dsync
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'status' instead of 'update' for the first blank.
Using 'sync' instead of 'recursive' for the second blank.
5fill in blank
hard

Fill all three blanks to show submodule status, synchronize URLs, and then update submodules recursively.

Git
git submodule [1] && git submodule [2] && git submodule [3] --recursive
Drag options to blanks, or click blank then click option'
Astatus
Bsync
Cupdate
Dinit
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the order of commands.
Using 'init' instead of 'sync' for the second command.