How to keep git history after CUBA to Jmix migration

Hello,
Is there any way to keep the same git remote and the history of project files on migration from Cuba to Jmix?
Now migration is creating a new project and if I add the previous remote to this new project, the files in the cuba modules are shown as deleted in git history and the files from jmix version are shown as new.

Thanks,
Ilias