revert to previous commit to merge in development 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>