Git submodule url changed
问题 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 url. Should I commit the .gitmodules file so that the next time I checkout my project and do git submodule update --init --recursive I won't get an error? 回答1: 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