0

I need to test a facility that calls git submodule update --init.

For the command to have a visible effect, I wish to reset submodule directories to the state they were in before I initially called submodule update -- i.e. a blank directory but still registered as a submodule.

If I just rm -rf everything under them, it's rather interpreted as a local change -- not what I need.

Removing and re-adding all the submodules is not something I wish to resort to unless there really is no better way.

ivan_pozdeev
  • 33,874
  • 19
  • 107
  • 152

1 Answers1

0

git submodule deinit does that.

ivan_pozdeev
  • 33,874
  • 19
  • 107
  • 152