Created
August 26, 2014 15:11
-
-
Save andremsantos/de9fc1764855abb6fb32 to your computer and use it in GitHub Desktop.
Reset all changes after last commit in git
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
#First reset the changes | |
git reset HEAD --hard | |
#then clean out everything untracked | |
git clean -fd | |
#source: http://stackoverflow.com/questions/4630312/reset-all-changes-after-last-commit-in-git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment