I would like to know if the following is possible in git:
Suppose I have the following story:
A
I would like to merge all the changes made to the topic branch back to the wizard, but without saving the commit history. That is, instead of:
A
I would like to have the following story:
A
Where F is the new commit in the main branch, which is equivalent to the changes made in commits W , X , Y , it is applied all at once.
I would also like to maintain the integrity of the topic:
A
Is it possible? I did some tests with git rebase, but so far it has not behaved as I need.
Thanks in advance.
source share