Skip to content

Instantly share code, notes, and snippets.

@petoye
Created January 22, 2017 05:07
Show Gist options
  • Save petoye/fccb28ad8090fc1ab43e0c7b735aa782 to your computer and use it in GitHub Desktop.
Save petoye/fccb28ad8090fc1ab43e0c7b735aa782 to your computer and use it in GitHub Desktop.
To revert to a previous commit, ignoring any changes:
git reset --hard HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment