Skip to content

Instantly share code, notes, and snippets.

@gabhi
Created June 17, 2014 23:33
Show Gist options
  • Save gabhi/a42e12480c064735af91 to your computer and use it in GitHub Desktop.
Save gabhi/a42e12480c064735af91 to your computer and use it in GitHub Desktop.
Reset git repository
git reset --hard # removes staged and working directory changes
git clean -f -d # remove untracked files
git clean -f -x -d # CAUTION: as above but removes ignored files like config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment