pjhartin of madewithply
11/10/2018 - 6:07 AM

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}