Change the path / branch of the submodule with TortoiseGIT
I am currently using TortoiseGIT to manage GIT repositories.
I want to change the path / branch of a submodule in my GIT repository using TortoiseGIT only.
How can I edit and update a submodule path or branch using the TortoiseGIT software?
+3
Devinci
source
to share
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
Pavan Sokke Nagaraj
source
to share