git reflog
git reset --hard ORIG_HEAD
git reset --hard HEAD@{5}
git reflog # determine pre-rebase head number, N git reset --hard HEAD@{N}