Created
December 9, 2020 19:57
-
-
Save yelkarama/9d4875827b9d3953288a608535c70f9c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
git reset --hard | |
git submodule foreach --recursive 'git reset HEAD . || :' | |
git submodule foreach --recursive 'git checkout -- . || :' | |
git submodule update --init --recursive | |
git clean -d -f -f -x | |
git submodule foreach --recursive git clean -d -f -f -x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment