stefanbc
6/14/2013 - 6:37 PM

Undoing a git rebase

Undoing a git rebase

# find head commit
git reflog

# now reset hard - where N is the head commit found in the reflog
git reset --hard HEAD@{N}