DEV Community

Discussion on: How to Create a React Typescript Monorepo with Git Submodules

Collapse
 
revskill10 profile image
Truong Hoang Dung

So, how to switch branch inside the git submodule ?
Without it, this article seems useless ;)

Collapse
 
alexeagleson profile image
Alex Eagleson

Same syntax as within the main module, just:

git branch branch-name

while within a directory of the submodule and the branch will be updated for the submodule and not the main module.