Removing a Git submodule ======================== Published: June 30, 2025 To remove a Git submodule go through these annoying steps: git submodule deinit -f path/to/module rm -rf .git/modules/path/to/module git config -f .gitmodules --remove-section submodule.path/to/module git add .gitmodules git rm --cached path/to/module