Skip to content

Instantly share code, notes, and snippets.

@allain
Last active October 7, 2017 21:12
Show Gist options
  • Select an option

  • Save allain/438767caccd01b199cbde3b65c914af8 to your computer and use it in GitHub Desktop.

Select an option

Save allain/438767caccd01b199cbde3b65c914af8 to your computer and use it in GitHub Desktop.
reset all git commits to some time in the past
git reset --hard PASTCOMMIT
git reset --mixed CURRENTCOMMIT
git commit -m "Message about reversal"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment