cclloyd
cclloyd

Reputation: 9205

Checkout all submodules from bare repo?

When I checkout the master branch of my bare repo using

git --work-tree=/path/to/destination --git-dir=/path/to/bare/repo checkout -f

It checks out the entire working branch, but not the contents of the submodules, only the parent directory of those submodules. How can I checkout every submodule to the destination folder?

Upvotes: 0

Views: 459

Answers (1)

phd
phd

Reputation: 94512

git submodule sync --recursive
git submodule update --recursive

Upvotes: 1

Related Questions