revert last merge git

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

Source

Also in Shell: