I simply merged three different branches together as part of a feature set and pushed the results so that the repository tree looked like this:
--- A --- A1 --- A2 --- A3 -
| \
+ --- B1 --- B2 --- B3 --- B4-
| \
+ --- C1 --- C2 --- C3 --------- C4
However, I was just told that branch B not ready for prime time, so I need to cancel these commits. How can I undo my changes so that my new chapter C5 to merge C3 and A3 ? When I'm done, I want the repository to look like this:
+ --- B1 --- B2 --- B3 --- B4 --- B5
| /
--- A --- A1 --- A2 --- A3 -
| \
+ --- C1 --- C2 --- C3 --- C4 --- C5
rjzii source share