You can uncomment the merge using git revert -m 1 <commit> , and then just use git merge <B_branch> again. This will add a refund to your story. Otherwise, you can use git rebase -i to remove B from the story. The latter is more disruptive to collaboration, because all WIP and all collaborators will now have to reset their master branches.
If you don't mind undoing the commit, I highly recommend it. This is the easiest way to get what you want. If D, E, F, G, H or I are based on sets of B changes, then returning can be difficult.
Christopher
source share