Re:Facebook's git repo is 54GB
by rickyc091 on Friday April 25, 2014 @03:43PM
(#7648635)
Re-cloning a fresh repo should keep it small. There's also a git gc method which cleans up the repo. I guess another way would be to just archive all the history up to a certain point somewhere.
[ Parent
| on HN ]
> Re-cloning a fresh repo should keep it small. There's also a git gc method which cleans up the repo.
There's only so much git gc can do. We've got a 500MB repo (.git, excluding working copy) at work, for 100k revisions. That's with a fresh clone and having tried most combinations of gc and repack we could think of. Considering the size of facebook, I can only expect that their repo is deeper (longer history in revisions count), broader (more files), more complex and probably full of binary stuff.
Re:Facebook's git repo is 54GB
by Dylan16807 on Friday April 25, 2014 @05:32PM
(#7649156)
Is that all actually code? Each commit would have to add an average of 5KB compressed so maybe 20KB of brand new code.