I always have to look up the finer points of git submodules
, this covers most of them in one place.
Bookmark of 'How can I specify a branch/tag when adding a Git submodule?'
How can I specify a branch/tag when adding a Git submodule? How does git submodule add -b work? After adding a submodule with a specific branch, a new cloned repository (after git submodule update --init) will be at a specific commit, not the branch itself...