git binary files

git binary files

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
enetheru
Posts: 627
Joined: 11 Jun 2010, 07:32

git binary files

Post by enetheru »

hey, so i couldnt find a more appropriate place to put this,

Ive been cleaning up some of my repo's lately because i had committed large binary blobs like zips and stuff and though to myself what does spring contain?

the repo size is roughly 180mb by itself, and running the script from this page:
http://stubbisms.wordpress.com/2009/07/ ... aist-line/

shows:

Code: Select all

All sizes are in kB's. The pack column is the size of the object, compressed, inside the pack file.
size   pack   SHA                                       location
39945  39948  9b1bccb34104b7f997e281a2ca6b10465d9a1ca6  taspring-linux-data-0.62b1.tar.bz2
12268  7365   ed34980be7896d1b1ea4f693b9d9c2c62f8df98a  springenvironment/maps/Gods of War v2.sm2
6467   4187   cb854c21fd77f66c7c0a87c614d51736ea627505  springenvironment/maps/Small Divide.sm2
3580   1668   c0da75b7375d81e066564fc394a345c35d6be817  rts/lib/assimp/test/models/CSM/ThomasFechten.csm
3340   1220   2e944d73f9efd6f966387d913fd939c9a066bbd7  rts/lib/assimp/test/models/BVH/01_03.bvh
2794   17     a3d321b7f8fb68fd4a73231ca110df63f6ce86c6  rts/lib/assimp/test/models/MDL/MDL5 (3DGS A5)/minigun_mdl5.mdl
2784   15     d48dfc45e6ba7a39ccfb272b9c744a646c0f31d3  rts/lib/assimp/test/models/MDL/MDL3 (3DGS A4)/minigun.MDL
2596   996    fef7ca1bd959fa2e987038187599458688de0285  rts/lib/assimp/test/models/BVH/Boxing_Toes.bvh
2504   812    12d8461e97b91be3ebfd32e2832560f1fb492786  rts/freetype219ST.lib
2293   342    69a026357c480c1ece0587bf3084ea909e9105a7  rts/lib/assimp/test/models/WRL/MotionCaptureROM.WRL
so removing only the single largest file reduces the repository size by 23%ish

removal can be done with http://rtyley.github.io/bfg-repo-cleaner/

I know that this is almost entirely pointless(except for people on 3rd world connections), and most people wouldn't care, but I thought I might chuck the info out there anyway.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: git binary files

Post by abma »

imo if we really have problems with a to big repo, we should just create a new repo with current contents, rewriting git history will invalidate all git hashs.
Post Reply

Return to “Engine”