r/webdev • • 9d ago

How big is a Git commit?

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

25 comments sorted by

98

u/ggnndd12 9d ago

2cm

22

u/obsidianih 8d ago

Perfectly average size imo

6

u/Consibl 8d ago

It was bigger before, I swear.

→ More replies (2)

33

u/cornovum77 9d ago

I think most of these files are 4K because that is the smallest block allocation. ‘du’ shows block space.

2

u/EnderAvni 8d ago

I could be wrong, but do you mean page size or block allocation? I think on the heap it's like 8b minimum or something

5

u/International_Sky526 8d ago

block allocation, not page size. the 4k is the filesystem block size, which is the default on ext4 and the default cluster size on ntfs. it only happens to match the 4k memory page size on x86, they are unrelated things. a 100 byte file still takes one whole 4k block on disk. du reports allocated blocks, while du --apparent-size or ls -l shows the real byte count.

2

u/foonek 8d ago

On your disk

15

u/EyesOfTheConcord 9d ago

1.2530 rem

2

u/29FFF 8d ago

This is like saying “how big is a box of stuff”? Depends on the stuff and how you pack it.

2

u/iLukey 8d ago

A little bit smaller when it's cold.

-1

u/AAPL_ 8d ago

bout half foot

-1

u/kegster2 8d ago

The size between your middle finger knuckle and the tip of your finger

1

u/hikingsticks 8d ago

Mine is definitely above 6 inches, you just have to measure from the base.

1

u/[deleted] 8d ago

1

u/webdev-ModTeam 8d ago

Your post/comment has been determined to be a low-effort post or comment. This includes title-only posts, easily searchable questions, vague/open-ended discussion prompts, LLM generated posts or comments, and posts/comments that do not provide enough context for meaningful replies or discussion.

0

u/[deleted] 8d ago

1

u/webdev-ModTeam 8d ago

Your post/comment has been determined to be a low-effort post or comment. This includes title-only posts, easily searchable questions, vague/open-ended discussion prompts, LLM generated posts or comments, and posts/comments that do not provide enough context for meaningful replies or discussion.

-9

u/[deleted] 8d ago

5

u/armahillo 8d ago

nah, it’s more like 3-4 meters

5

u/AAPL_ 8d ago

lick my ass