I have a Git project which has a submodule. The url of the submodule was recently changed. I have changed the .gitmodules
and config file to point to the new ur
Yes, after editing .gitmodules
, you should commit and push those changes, so the change becomes available to everyone. Otherwise, only your local submodule would point to the new URL and everyone else would still the old URL.
However, you don't need to commit to change the URL locally, git
will also switch to the new URL if you haven't committed the change.