Created
November 23, 2017 16:22
-
-
Save sofaking/80ef29c08a26b057e9e3a6430dfe1d44 to your computer and use it in GitHub Desktop.
Reset a git repository with submodules to initial state
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 submodule foreach --recursive git reset --hard | |
git reset --hard | |
git submodule update --init | |
git submodule foreach --recursive git submodule update --init |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment