Last Updated: March 06, 2019
·
1.425K
· acernikovs

HowTo remove git submodule

  1. Delete the relevant section from the .gitmodules file.
  2. Delete the relevant section from .git/config.
  3. Run git rm --cached pathtosubmodule (no trailing slash).
  4. Commit and delete the now untracked submodule files.