git submodule set-branch <path>

Sets the default remote tracking branch for the submodule

Arguments

NameDescription
pathPath to submodule

Options

NameDescription
-b, --branch <branch>Branch of repository to add as submodule
-d, --defaultRemoves the submodule.<name>.branch configuration key, which causes the tracking branch to default to the remote HEAD
--End of subcommand options