Change the path / branch of the submodule with TortoiseGIT
1 answer
There are no settings to edit or update an existing submodule in the git repository using TortoiseGIT. You can use the below commands to edit and update submodules of the repository using git commands
git config --file=.gitmodules submodule.Submod.url https://github.com/username/XYZ.git
git config --file=.gitmodules submodule.Submod.branch BranchX
git submodule sync
git submodule update --init --recursive –remote
+4
source to share