Skip to content

Instantly share code, notes, and snippets.

@akovardin
Created December 17, 2018 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akovardin/53c1e9a251f8501e927d1897d81f54a0 to your computer and use it in GitHub Desktop.
Save akovardin/53c1e9a251f8501e927d1897d81f54a0 to your computer and use it in GitHub Desktop.
[Git] #git
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