GIT-COUNT-OBJECTS(1)
π git-count-objects(1) π
okay bestie, so this one's from the Git Manual and it's genuinely so underrated β like, everyone's out here repacking and nobody's checking the receipts first? not you tho. you're gonna count your objects like a main character. π
β¨ NAME β¨
git-count-objects β counts how many unpacked objects you've got lying around, and how much disk they're eating π
πΈ SYNOPSIS πΈ
git count-objects [-v] [-H | --human-readable]
π¦ DESCRIPTION π¦
okay so what this does is it counts the number of unpacked object files β those lil loose ones just vibing in your object database β plus the disk space they're consuming. and why do you care? because it literally helps you decide when it is a good time to repack. that's the whole point. vibe check your repo before you commit to the repack era. π
β¨ OPTIONS β¨
-v,--verboseβ gives you the full detailed report, not just the headline number. the way that it breaks everything down?? obsessed. here's every single line it spits out:count: the number of loose objectssize: disk space consumed by loose objects, in KiB (unless-His specified)in-pack: the number of in-pack objectspacks: the number of pack filessize-pack: disk space consumed by the packs, in KiB (unless-His specified)prune-packable: the number of loose objects that are also present in the packs. these objects could be pruned usinggit prune-packed.garbage: the number of files in the object database that are neither valid loose objects nor valid packs ποΈsize-garbage: disk space consumed by garbage files, in KiB (unless-His specified)alternate: absolute path of alternate object databases; may appear multiple times, one line per path. β οΈ note that if the path contains non-printable characters, it may be surrounded by double-quotes and contain C-style backslashed escape sequences. iykyk.
-H,--human-readableβ prints sizes in human readable format, so instead of doing math in your head at 2am you just get the numbers looking cute. π«Ά
π GIT π
Part of the git(1) suite β yeah, she's with the family. π
and that's the whole page, bestie!! slay. this was Git 2.56.0, dated 2026-09-27 β no cap, that's literally what it says at the bottom. go count some objects and have the day you deserve πβπ
π¦ where this page comes from
- arch rolling: git 2.56.0-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms