Skip to content

Instantly share code, notes, and snippets.

@chestozo
Created August 18, 2016 12:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chestozo/8544539ae1a8c59374a9a313ebc8610b to your computer and use it in GitHub Desktop.
Save chestozo/8544539ae1a8c59374a9a313ebc8610b to your computer and use it in GitHub Desktop.
# Based on http://stackoverflow.com/a/1260982/449345
# The most mneeeeee part is this one: `rm -rf .git/modules/mmmodule`
# This script can be useful in case you are changing origin for your
# nice and cool mmmodule.
git submodule deinit -f mmmodule
rm -rf .git/modules/mmmodule # kind of WAAAAT?!
git submodule init mmmodule
git submodule update --recursive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment