0 votes
1 view
in Devops and Agile by (23.5k points)

I've created a git repository with a submodule in it. I'm able to tell the submodule itself to change its remote repository path, but I'm not sure how to tell the parent repository how to change the remote repository path for the submodule.

I wouldn't be surprised if I'm somewhat out of luck and have to do things manually, as even deleting submodules isn't easy.

1 Answer

0 votes
by (40.2k points)

To update the file you should just be able to edit

.gitmodules file

Which will update the url and then run 

git submodule sync 

This command will reflect the change to the project.

Reference: https://git-scm.com/docs/git-submodule#Documentation/git-submodule.txt-sync--recursive--ltpathgt82308203

...