Skip to content

Instantly share code, notes, and snippets.

@thebentern
Created March 17, 2017 13:32
Show Gist options
  • Save thebentern/581c45b96502084b7d1e69ed9d508b0f to your computer and use it in GitHub Desktop.
Save thebentern/581c45b96502084b7d1e69ed9d508b0f to your computer and use it in GitHub Desktop.
Revert back to specific commit and preserve commit history
git revert --no-commit 0766c053..HEAD
git commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment