There\'re few question about \"flattening merge\" on StackOverflow, with an answer usually being \"git rebase\". These answers though miss one crucial point - order of commi
Actually, If I understand correctly, you can achieve this easily with git-stitch-repo.