Skip to main content
added 297 characters in body
Source Link
Abizern
  • 149.2k
  • 41
  • 205
  • 259

Alternatively, you could setup your submodules so that rather than being in their default detached head state you check out a branch.

Edited to add:

One way is to checkout a particular branch of the submodule when you add it with the -b flag:

git submodule add -b master <remote-repo> <path-to-add-it-to>

Another way is to just go into the submodule directory and just check it out

git checkout master

Alternatively, you could setup your submodules so that rather than being in their default detached head state you check out a branch.

Alternatively, you could setup your submodules so that rather than being in their default detached head state you check out a branch.

Edited to add:

One way is to checkout a particular branch of the submodule when you add it with the -b flag:

git submodule add -b master <remote-repo> <path-to-add-it-to>

Another way is to just go into the submodule directory and just check it out

git checkout master
Source Link
Abizern
  • 149.2k
  • 41
  • 205
  • 259

Alternatively, you could setup your submodules so that rather than being in their default detached head state you check out a branch.