Free Git Storage Estimate calculator with clear step-by-step results.
Git stores compressed deltas for text, so a source change of 45 KB typically costs around a third of that on disk, while binary blobs compress poorly and are effectively stored whole. Splitting changes into text and binary shares is what makes a history estimate land near reality.
History size
MB = commits x (text delta x 0.35 + binary delta) / 1024
Repository size
Repo = working tree + history objects
Delta compression and zlib both rely on redundancy that compiled binaries, images and archives do not have. Every version is stored at close to full size, forever, even after deletion.
Move large binaries to Git LFS or an artefact store, then rewrite history to drop the blobs. A shallow or partial clone reduces what developers download without changing the server-side size.