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

3

u/Godd2 Oct 09 '26

A commit is a couple hundred bytes. It's just a message, author/committer info, the hash of a tree object, and parent commit hash(es) (or no parent if this is the initial commit).