Skip to content

Instantly share code, notes, and snippets.

@justinsoliz
Created August 25, 2018 22:04
Show Gist options
  • Save justinsoliz/6e0619444fb6c5c1c71efbefb0b6f486 to your computer and use it in GitHub Desktop.
Save justinsoliz/6e0619444fb6c5c1c71efbefb0b6f486 to your computer and use it in GitHub Desktop.
Remove a git submodule
# bash commands per https://gist.github.com/myusuf3/7f645819ded92bda6677#gistcomment-2650640
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