Need HELP with merging all repositories to one with subfolders

Hello, I am new to coding and as I am studying I have downloaded the GitHub Desktop Application and you guessed it, I have uploaded every one of my exercises to own repository. However at the end of the course there was lecture about github and how to use it, that is when I have faced my mistake, so now I am looking for a way to merge all my repositories to a single repo with subfolders for each exercise without losing those 4-5 months of activity on all the tasks from the course.