This repo contains an example Powershell script to migrate from multiple Git repositories to a single Git mono-repo.
There is a two-part blog post at https://stevetalkscode.co.uk/merge-to-monorepo-1 and https://stevetalkscode.co.uk/merge-to-monorepo-2 that explains the thinking behind the script and how to change the variables to work with your own repositories.