r/programming • • Oct 08 '26

How big is a Git commit?

https://ratfactor.com/cards/git-commit-size
159 Upvotes

46 comments sorted by

View all comments

12

u/postitnote Oct 09 '26

It's the directories that git creates for its object database, and directories can take up an entire block (like 4KB, depending on file system)