Some links on topic how to move files from one repository to another preserving history:
In few words:
git filter-branch to filter history for files you needget remote add or git remote set-url to set target repository as
remote URLgit pull --allow-unrelated-histories to sync local and remote target
repositorygit push