how to undo merging in git code example
Example 1: abort merge git
git merge --abort
Example 2: undo a git merge
git reset --hard HEAD~1
git reset --hard <commit_sha>
Example 3: undo merge
// find the commit hash
git log --oneline
git revert -m 1 [commit-hash]
// https://www.datree.io/resources/git-undo-merge