“Keep binaries out of version control” is a truth I’ve always held, but I recently learned more about why.
Yes, you don’t want large files in version control, which binaries often are.
Yes, you shouldn’t version changes you can’t review, which binary changes are.
But even worse, binaries can make your Git repo explode in size over time. Even when your “remove” (quotes intentional) or replace them with new ones, they are part of the repo. They’re cloned every time the repo is cloned, slowing down the developer experience, and even potentially eating up all the allowed space on the repo host.
Avoid it!