Skip to content

Instantly share code, notes, and snippets.

@thamht4190
Created March 22, 2018 08:32
Show Gist options
  • Select an option

  • Save thamht4190/4b40a18fc4ba1a32e8d58173150a89df to your computer and use it in GitHub Desktop.

Select an option

Save thamht4190/4b40a18fc4ba1a32e8d58173150a89df to your computer and use it in GitHub Desktop.
0. mv a/submodule a/submodule_tmp
1. git submodule deinit -f -- a/submodule
2. rm -rf .git/modules/a/submodule
3. git rm -f a/submodule
# Note: a/submodule (no trailing slash)
# or, if you want to leave it in your working tree and have done step 0
3. git rm --cached a/submodule
3bis mv a/submodule_tmp a/submodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment