enable per branch reflogs

"If you've enabled per branch reflogs you should be able to simply do git reflog branchname@{1} as a rebase detaches the branch head before reattaching to the final head. I would double check this, though as I haven't verified this recently."

https://stackoverflow.com/questions/134882/undoing-a-git-rebase