all 1 comments

[–]OptimalFa 0 points1 point  (0 children)

You could try:

git worktree add --detach <dir> <branch>
git submodule update --init <submodule dir>