Assume the following graph:
A -- B -- C -- D -- E -- F \ G -- H -- I
I would like to find G to be able to interactively rebase for squash commits (but still keep one commit in the thread branches), which will be considered and merged later. I don’t want to just reinstall the whole branch, because I want to save the information that there is a branch, and it was merged.
(I know that I can look at the history and just use the SHA checksum to commit, but I'm looking for a way to do this without manually digging up information or counting the number of commits and using ~ from HEAD with this number).
Edit: Clarify what I want to achieve:
I want to avoid this:
A -- B -- C -- D -- E -- F -- J \ / G -- H -- I -- -- -- -
And instead, we get something like this:
A -- B -- C -- D -- E -- F -- J \ / G' -- -- -- -- -- -- -
In other words, I want to deflate commits with an interactive permutation in the topic branch into one, but still save the branch and use regular merging to integrate changes from the topic branch into the master.
Tamás Szelei
source share