Complete the command to add a Git submodule.
git submodule [1] https://github.com/example/lib.gitThe git submodule add command adds a new submodule to your repository.
Complete the command to pull changes for all submodules.
git submodule [1] --recursiveThe git submodule update --recursive command fetches and checks out the correct commits for all submodules.
Fix the error in the command to add a subtree at prefix 'lib'.
git subtree [1] --prefix=lib https://github.com/example/lib.git mainThe correct command to add a subtree is git subtree add.
Fill both blanks to complete the command that updates a subtree from remote 'origin' branch 'main'.
git subtree [1] --prefix=lib [2] main
The command git subtree pull --prefix=lib origin main updates the subtree from the remote repository.
Fill all three blanks to create a dictionary comprehension that maps submodule names to their paths if they are initialized.
{ [1]: [2] for [3] in submodules if submodules[[3]]['initialized'] }This comprehension creates a dictionary with submodule names as keys and their paths as values, filtering only initialized submodules.