Skip to content
Tech News
← Back to articles

Experiment shows Git commits consume kilobytes of disk space per small change

read original more articles
GoKawiil Brief

A developer measured Git repository size changes using du and dc, finding an empty .git directory takes about 64KB, while adding 250 tiny files and committing them added roughly 47KB. A single-character edit to one file followed by a commit added about 17KB to the repository, despite the actual content change being only a few bytes.

Why It Matters

GoKawiil's interpretation of the reporting above, not reported fact.

The findings illustrate that Git's object storage model allocates disk space in fixed-size blocks per object directory, meaning even trivial text edits can appear to cost far more storage than the literal byte-level change would suggest. This could matter for developers reasoning about repository size growth over many small commits, though the experiment does not account for Git's later pack-file compression which typically reduces long-term storage overhead.

Key Takeaways

Source: ratfactor.com, 2026-10-09

Published there as: “How big is a Git commit?”

Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.