I have the following situation:
A---B--- ... ---E---------------------------.
\
A---B--- ... ---E---F---G---H---I--- ... ---N master
I want to remove the duplicated commits from the history and remove this bad reference.
A---B--- ... ---E---F---G---H---I--- ... ---N master
I've tried it with git rebase -i
and remove the duplicate commits but this duplicate the commits again and results to a lot of merge conflicts.