git delete merge code example
Example 1: abort merge git
git merge --abort
Example 2: cancel a merge git
git merge --abort
Example 3: remving merged commit
git revert -m 1 <SHA of merge>
git merge --abort
git merge --abort
git revert -m 1 <SHA of merge>