how to revert only specific merges in a branch 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>