Created
March 17, 2019 21:56
-
-
Save melcloud/0ff1f4648972c597e3e940bb8cf75d7b to your computer and use it in GitHub Desktop.
Delete git submodules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Delete the relevant section from .gitmodules | |
git add .gitmodules | |
Delete the relevant section from .git/config | |
git rm --cached MODULE/TO-REMOVE | |
rm -rf .git/modules/MODULE/TO-REMOVE | |
rm -rf MODULE/TO-REMOVE | |
git add . | |
git commit | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment