Skip to content

Instantly share code, notes, and snippets.

@mpriour
Created March 1, 2022 20:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpriour/42ec1149bce2c07dbb78bd9f04477fbe to your computer and use it in GitHub Desktop.
Save mpriour/42ec1149bce2c07dbb78bd9f04477fbe to your computer and use it in GitHub Desktop.
Remove submodules
git submodule deinit <path_to_submodule>
git rm <path_to_submodule>
git commit-m "Removed submodule "
rm -rf .git/modules/<path_to_submodule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment