Skip to content

Instantly share code, notes, and snippets.

@valikos
Created November 23, 2015 06:10
Show Gist options
  • Save valikos/982fecf64943d5987958 to your computer and use it in GitHub Desktop.
Save valikos/982fecf64943d5987958 to your computer and use it in GitHub Desktop.
Reset rebase
# find head commit
git reflog
# now reset hard - where N is the head commit found in the reflog
git reset --hard HEAD@{N}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment