3 ms·
I'm a bit confused. Whenever I've used git on my projects, I'd make sure the binaries were excluded, using .gitignore Don't other people do that, too? What's
by spoiler 13y ago
I'm a bit confused. Whenever I've used git on my projects, I'd make sure the binaries were excluded, using .gitignore
Don't other people do that, too? What's the benefit of having binaries stored? I've never needed that; I've never worked on any huge projects, so I might be missing something crucial.
- maaaats 13y agoWell, it depends. Images are for instance binaries where a text diff makes little sense, so you have a copy of each version of the image ever used. And many projects use programs where the files are binaries. For instance, I've been on a project where Flash were used and the files checked in. Or PhotoShop PSD files, .ai files etc.
- spoiler 13y agoI usually keep a separate repo for PSD/AI files (completely neglected to consider them as binary files). As for images, icons, fonts and similar, I just have a build script that copies/generates them, if it's needed. I guess I've always been a little bit "obsessed" about the tidiness of my repositories.
- zhemao 13y agoIf you don't have the source that produced those binaries your only choice is to have them downloadable from somewhere else (which is a real hassle for the developer) or just check them into the repo.
- smsm42 13y agoIf there is a small number of rarely changing binaries (like icons, tool configs, etc.) then it may not be worth it to move them. Also if space is much cheaper than tool complexity and build time.