Skip to content

Instantly share code, notes, and snippets.

@hmboyd
Created December 29, 2021 00:34
Show Gist options
  • Save hmboyd/8cb06809db5561bbbbc264b533eee7a7 to your computer and use it in GitHub Desktop.
Save hmboyd/8cb06809db5561bbbbc264b533eee7a7 to your computer and use it in GitHub Desktop.

This solves the problem if a git submodule from another remote repository is not
being cloned during the initial clone from the master branch.

git clone --branch feature/init-branch <remote-clone-url>
cd <repo-dir>
git submodule init
git submodule update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment