Before your next migration, PLEASE git clean your repos
Did you know how much space ignored files like node_modules
can add to your Documents
or Development
folder? Well —in my case—, I happened to find more than 9 gigabytes of those files!
What's worse: that lot of files made my transfer via AirDrop an impossible task, due to the huge quantity of entries to be processed even before copying them.
So, in order to solve this, I coded a simple, yet elegant solution to address that issue.
The magical script
It's quite simple: recursively finds and git clean
s every folder that has a .git
folder inside it (thus, being a repo). If you adequately configure your repos, it'll save you thousands of gigs for your next migration.