The process for switching the branch tracked by a git subrepository is:
git submodule
command to access the subrepository:
git submodule update --init subrepo
cd subrepo
git branch
command to list the available branches:
git branch
git checkout
command to switch to the desired branch:
git checkout branch_name
cd ..
git add subrepo
git commit -m "Switch subrepo to branch_name"
Asked: 2021-05-14 11:00:00 +0000
Seen: 17 times
Last updated: May 24 '22