Farsight
Farsight

Reputation: 23

Adding nested git submodule URLs after setting to local paths

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

Answers (1)

rasengan__
rasengan__

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

Related Questions