0 votes
1 view
in DevOps and Agile by (30k 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 (51.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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !