One of my projects has a folder with a hundred thousand tiny MP3 files (a few spoken words).
In the repo, so far I've only committed the code section of the project, and I'm scratching my head about what to do about the assets.
Of course git is meant to track text-based files, but we all track a few other assets when they are part of a project.
I am hesitating between two options and would love some input.
Track all the things.
Under this option, git will track the 100K asset files. The benefit is that once they're up on GitHub there will be very few changes (a renamed file here and there.)
My worry is how git will handle the assets for each subsequent commit. Each time I commit, will git recompute the hashes of all the asset files to compare them with the last commit? If so, each commit will take ages.
Don't track assets, but add a large archive file to Releases
Under this option, git won't track the mp3s, but I'll create GitHub releases where I'll upload a 7z file of the assets in the binaries section of the release. The downside I see is that if I rename a single MP3 file, the next release will be a wasteful duplication of material.