I want to undo some changes without removing them from the history, in a group-friendly way. Currently, I have this (* indicates master):
[rev 1] -- [rev 2] -- [rev 3] -- [rev 4] -- [rev 5] -- [*rev 6]
I want to get back to rev 2, but in a way that makes sense. I believe it should look like this:
[rev 1] -- [rev 2] -- [rev 3] -- [rev 4] -- [rev 5] -- [rev 6] -- [*rev 7]
| |
\---------------------------------------------------/
Where rev 7 is the merge of 6 and 2 (and the "merge" is really just "blindly keep rev 2"). No new heads are created. How do I do this?
Thanks in advance.