-
-
Save aboron/d2f5cf8edabf64ccc9cb8a42bcce46fe to your computer and use it in GitHub Desktop.
Clean, reset, and update a git repo and its submodules
This file contains 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
git clean -xfdf | |
git reset --hard | |
git update | |
git submodule foreach --recursive git clean -xfdf | |
git submodule foreach --recursive git reset --hard | |
git submodule update --init --recursive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment