Skip to content

Instantly share code, notes, and snippets.

@nmccready
Last active March 22, 2024 15:09
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 nmccready/0a9db379485bc9eb6f94dc021e2ab124 to your computer and use it in GitHub Desktop.
Save nmccready/0a9db379485bc9eb6f94dc021e2ab124 to your computer and use it in GitHub Desktop.
unfuck git submodules
rm -rf $@ && git checkout origin/master $@ && git submodule update --init
@nmccready
Copy link
Author

Usage:

Your submodules dir is modules .

gitSubmodulesUnFuck.sh modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment