I have a branch with consecutive merges from another branch; there are no non-merge-commits in between, like:
E-----G-----J
/ / /
A-B-C-D-F-H-I
where G and J are the consecutive merge commits.
How can i squash G and J into J to get the following picture?
E-----------J
/ /
A-B-C-D-F-H-I
I tried with interactive rebase but that led to editing some merge conflicts again which shouldn't have overlapped between the two merges G and J.
I also tried a shortcut but with that all merge information is lost. Maybe "fixing" that afterwards with a fake merge could work but i didn't succeed.