how to undo merge that isnt pushed git code example
Example 1: git undo merge
git reset --hard HEAD~1
Example 2: git undo merge
git reset --hard HEAD~1
git reset --hard <commit_sha>
git reset --hard HEAD~1
git reset --hard HEAD~1
git reset --hard <commit_sha>