Last active
January 26, 2016 10:23
-
-
Save adriantorrie/ddb9c1a585f9b12b64b7 to your computer and use it in GitHub Desktop.
Steps to clean a git repo that has unstaged changes
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
# http://stackoverflow.com/questions/14075581/git-undo-all-uncommitted-changes | |
git reset | |
git checkout . | |
git clean -fdx | |
git pull | |
# make all shell files in the repo /bin directory executable | |
find ./bin -name "*.sh" -exec chmod u+x {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment