Last active
June 30, 2016 07:32
-
-
Save OleksandrKucherenko/6541cd56f3532dab7190902be4d5e3bb to your computer and use it in GitHub Desktop.
Revert all submodules of the project 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
#!/bin/bash | |
# wait for Enter key | |
function pause(){ | |
read -p "$*" | |
} | |
echo '' | |
echo Reverting all submodules... | |
echo '' | |
# reset all changes in submodules | |
git submodule foreach --recursive git reset --hard | |
# revert changes in all submodules to initial state | |
git submodule update --init --recursive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment