Skip to content

Instantly share code, notes, and snippets.

@goog
Created November 4, 2012 09:52
Show Gist options
  • Save goog/4011115 to your computer and use it in GitHub Desktop.
Save goog/4011115 to your computer and use it in GitHub Desktop.
With git log check which commit is one prior the merge. Then you can reset it using:
git reset --hard commit_sha
There's also another way
git reset --hard HEAD~5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment