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...
VonC

I always have to look up the finer points of git submodules, this covers most of them in one place.

Avatar
Proactive application of technology to business

My interests include technology, personal knowledge management, social change

Related