Skip to content

Instantly share code, notes, and snippets.

@r-pufky
Created July 3, 2019 06:04
Show Gist options
  • Save r-pufky/745355e6653b8245328009869ff8970c to your computer and use it in GitHub Desktop.
Save r-pufky/745355e6653b8245328009869ff8970c to your computer and use it in GitHub Desktop.
revert git changes in new commit and keep history
git revert --no-edit {LAST GOOD COMMIT}..{LAST BAD COMMIT}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment