how to undo rebase branch in a git code example
Example 1: git undo rebase
git reset --hard ORIG_HEAD
Example 2: git undo rebase
git reflog # determine pre-rebase head number, N
git reset --hard HEAD@{N}
git reset --hard ORIG_HEAD
git reflog # determine pre-rebase head number, N
git reset --hard HEAD@{N}