For example, I just merged master branch to my feature branch. Then someone pushed new stuff on master. So I merged again to keep up. And then someone pushed again... I merge again. How do I squash the previous merges so that two merge actions is combined to one?
How can I turn this:
o---o---A---B---C---D---E
\ \ \ \
F---G---H---I---J
into this:
o---o---A---B---C---D---E
\ \
F---G-----------J'
where J and J' contain exactly the same codes.