The Use Case is that i have to move certain repositories to a new server. So these repositories get a new url.
The Parent project which reference these sub-modules needs to be updated with the new url for the sub-module.
I think of doing the following.
- update the .gitmodules file
- git submodule sync
- git submodule update
- commit and push
But, since the previous commits have the earlier version of the .gitmodule, if i checkout a previous commit of the parent project - will it not look for the old server?
To ensure reproducibility, we need to have all old commits to be working.
Any idea to get around this?
git submodule set-url [--] <path> <newurl>
– Panache