3 ms·
> 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
by pitaj 3y ago
> 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>