Git delete sub-module

Back

If the name of your submodule is a/submodule

  • git submodule deinit -f -- a/submodule
  • rm -rf .git/submodules/a/submodule
  • git rm -f a/submodule