Update Submodule to Latest Commit
Answer
Scenario:
You have a Git repository at /home/interview/repo that contains a submodule in the vendor/utils directory. The submodule is pointing to an old commit, but newer commits exist on the submodule's remote repository.
Task:
Update the submodule to the latest commit on its default branch and commit this change in the parent repository.
📹 Video Solution