git count-objects -vH

Category: Git - Core

git count-objects -vH

Show the size of the object database

Reports how many loose objects and packs exist and how much disk the repository uses. The -H flag prints sizes in human-readable units like MiB. Run it before and after git gc to see the cleanup effect.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.