Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 565 Bytes

File metadata and controls

16 lines (9 loc) · 565 Bytes

Update Submodule to Latest Commit

Company: GoDaddy | Difficulty: Medium


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