Git Snippet: Submodules

From Coder Merlin

Git Submodules[edit]

Ensure submodule is pointing to correct branch:

git config -f .gitmodules submodule.<submodule-path>.branch <branch>