r/github • • Oct 03 '26

Tool / Resource [ Removed by moderator ]

/r/github/comments/1wwjhw3/removed_by_moderator/

[removed] — view removed post

2 Upvotes

4 comments sorted by

•

u/github-ModTeam Oct 03 '26

Removed. Post has nothing to do with GitHub.

This is a post for /r/git

2

u/fagnerbrack Oct 03 '26

At a Glance:

Git stores objects as zlib-compressed data and later packs them into packfiles, so a commit's size depends on how compressible your files are. In tests that used only loose objects, a fresh git init took about 64 KB and committing 250 tiny files added 47 KB. A 3-byte change cost 17 KB in a directory of 50 files but only 8.7 KB in a single-file repo. Running git show on the new objects explains the cost: one small edit writes a commit, two trees and a blob. Bigger files fare much better. A 584 KB binary took about 298 KB, and a 16.4 MB Linux header dropped to 1.6 MB. Tiny commits carry kilobytes of overhead, while larger ones take up roughly 10–50% of the original file size.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

1

u/SheriffRoscoe Oct 03 '26

Thank you for the summary. It's sort of funny that the article itself adds very little beyond your summary.

1

u/az987654 Oct 03 '26

There's so much variability between any set of commits, this data is pretty meaningless