git undo merge

Shell
git reset --hard HEAD~1
git reset --hard <commit_sha>git reset --hard HEAD~1
git revert -m 1 commit_hash

Source

Also in Shell: