Skip to content

Instantly share code, notes, and snippets.

@andremsantos
Created August 26, 2014 15:11
Show Gist options
  • Save andremsantos/de9fc1764855abb6fb32 to your computer and use it in GitHub Desktop.
Save andremsantos/de9fc1764855abb6fb32 to your computer and use it in GitHub Desktop.
Reset all changes after last commit in git
#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