I have code files from dozens of git repos in various subfolders under c:\code folder - 16Gb.
I want to migrate this folder to another computer. It's currently taking > 1 day to copy the entire folder to a USB drive, because it is around 650,000 small files.
Is there some script I can run to cleanup all of the repos in my c:\code folder?
Edit: all of the repos have a remote. I don't care about copying all branches. I only care about keeping the directory structure of the repos, i.e.
c:\code\github\NLog
c:\code\github\Swashbuckle.AspNetCore
c:\code\myclient\DevOpsProject1\solution1
c:\code\myclient\DevOpsProject1\solution2
c:\code\myclient\DevOpsProject2\solutionx
etc