how to unmerge branch in git code example Example: how to unmerge branch in git git reset --merge <merge-commit-hash> # or git reset --hard <commit-before-merge>