Skip to main content
  1. Posts/

Git submodules and newly cloned repositories

·1 min
a book with the text INITIALIZATION on the cover, the book lies on a workbench, next to a hammer, screwdriver and some screws,, photo realistic

As a reminder for my future self: If one clones a repository to a new location, the submodules are not cloned automatically. They need to be initialized and updated once, in order to show the proper content.

git submodule init
git submodule update

If the theme is a submodule and the customizations are in a different branch, one needs to switch to that particular branch as well. D’oh!

git checkout live
jwb
Author
jwb
Something-ops during the day, nowadays mostly asleep during the night.