I am currently converting a SVN repository to Git and during this process I want to make the history as linear as possible. The problem is that I have some feature branches in SVN which merges from the master branch during the process. This merging pattern makes rebaseing a pain and I cannot figure out how to do it properly.
My goal is to replace the merge of the feature branch with a squash commits:
I have studied the answer to this question but none of the suggested answers seems to work for my case: git remove merge commit from history
How should I go about squashing my feature branch so that I can rebase it on master at the correct point in time?