From the course: Git Dependency Management with Submodules and Subtrees

Unlock the full course today

Join today to access over 24,600 courses taught by industry experts.

Solution: Initialize and update submodules

Solution: Initialize and update submodules

(upbeat music) - [Instructor] Hope you had fun finding solutions to the challenge. Were you able to find your way? Was the manual of any help? No? Don't worry, I'm here to help. Coming to the first one, clone and initialize all submodules locally. The command goes something like git clone hyphen hyphen recursive followed by the git URL. This command automatically clones the parent repository with all its submodules. You can also run a git submodule init to initialize after you clone and go to the parent directory. Let's run this command. Okay, it's asking for a pass phrase because of my SSH configuration. Okay, we have some modules here, so we are getting asked the pass phrase once again. And it's done. You can also run a git submodule init to initialize after you clone and go to the parent directory. You can go to cd docs test. Then you can run git submodule init. What if you cloned the repository already…

Contents