Skip to content

Instantly share code, notes, and snippets.

@gramcha
Created October 25, 2018 11:18
Show Gist options
  • Save gramcha/c82fbfe103c11e08b30c269be2047b92 to your computer and use it in GitHub Desktop.
Save gramcha/c82fbfe103c11e08b30c269be2047b92 to your computer and use it in GitHub Desktop.
How do I remove a GIT submodule?
#lets assume git sub module name is 'eureka-client-service'
#required git version >= 1.8.5.2
git rm eureka-client-service
rm -rf .git/modules/eureka-client-service
git config -f .git/config --remove-section submodule.eureka-client-service 2> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment