> How do you undo a merge that you didn't mean to do/did wrongly?
I usually used `switch` for this:
# Check out the previous commit
git switch -d HEAD~
# Overwrite the branch
git switch -C <current branch>