trusktr
trusktr

Reputation: 45484

How do you retrieve the submodules for a repo?

For example, I have a repo, and one subfolder is empty because the code from another repo goes there...

What command do I use so the submodule is retrieved and added in all locations of my local repo where submodules are needed?

Upvotes: 1

Views: 491

Answers (1)

KingCrunch
KingCrunch

Reputation: 131931

git submodule update --init

or (when you didn't clone the repository yet)

git clone -i /path/to/parentRepo

have a look at

git submodule --help

Upvotes: 3

Related Questions