Skip to content

Instantly share code, notes, and snippets.

@nmccready
Last active March 22, 2024 15:09
Show Gist options
  • Select an option

  • Save nmccready/0a9db379485bc9eb6f94dc021e2ab124 to your computer and use it in GitHub Desktop.

Select an option

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