Reputation: 23
Is there a way to modify git submodule URLs after setting them initially to local paths after consistent committing on local git submodule? Would this overwrite my other commits?
git submodule add url one
vs
git submodule add localpath two
Upvotes: 1
Views: 73
Reputation: 977
If you want to change the URL of any submodule, you use the command:
git submodule set-url <newurl>
You can refer to this for more information on the topic.
Best.
Upvotes: 1