For example, I have commits as follows (A..H
are commit hashes):
A-B-C-D-E-F-G-H
Is there a way I could combine commits between C
and G
?
I do not want to use git rebase -i C
, and manually change all the commits between C
and G
from pick
to f
,
because commit F
is "Merge branch 'xxxxxxx' into xxxxxxx", in which there are too many commits, which I need to pick up and change too many pick
s to f
.
I have tried this script as well, but it requires solving conflicts. I do not think I need solving conflicts as I am not merging from another branch but combine several previous commits together.