0

I have read in here that a good method to change the name of a submodule is to use the following git command:

git mv submoduleA submoduleB

But before I knew this. I mistakenly simply changed the name of it directly from the Windows explorer, then edited the path in the .gitmodules file. And then, adding it.

But I'm getting the following when typing git add .: enter image description here

Two questions:

  • Is there any way to correct this mistake?
  • Whenever I want to change the name, is it always better to use git mv submoduleA submoduleB or is there an alternative in which I could do this directly from the Windows explorer next time I'd like to change a submodule name while keeping it pointing at the correct commit ID?
tadm123
  • 8,294
  • 7
  • 28
  • 44

0 Answers0