I usually never do this but this time I wound up with a feature branch that, for update purposes, got master merged into it (I usually favour rebase master on my feature branch to avoid useless merge commits).
And now I want to squash all commits of my feature branch into one before merging it as finalised to master but it is not as seamless as it usually is.
How can I do that?