fatal: Cannot do a soft reset in the middle of a merge. code example Example: cancel a merge git git merge --abort