{
    "content": [
        {
            "type": "text",
            "text": "# git-count-objects(1) (man)\n\n**Summary:** git-count-objects - Count unpacked number of objects and their disk consumption\n\n**Synopsis:** git count-objects [-v] [-H | --human-readable]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -v | --verbose | — | Report in more detail: count: the number of loose objects size: disk space consumed by loose objects, in KiB (unless -H  |\n| -H | --human-readable | — | Print sizes in human readable format |\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (3 lines)\n- **DESCRIPTION** (3 lines)\n- **OPTIONS** (1 lines) — 2 subsections\n  - -v, --verbose (22 lines)\n  - -H, --human-readable (2 lines)\n- **GIT** (5 lines)\n\n## Full Content\n\n### NAME\n\ngit-count-objects - Count unpacked number of objects and their disk consumption\n\n### SYNOPSIS\n\ngit count-objects [-v] [-H | --human-readable]\n\n### DESCRIPTION\n\nThis counts the number of unpacked object files and disk space consumed by them, to help you\ndecide when it is a good time to repack.\n\n### OPTIONS\n\n#### -v, --verbose\n\nReport in more detail:\n\ncount: the number of loose objects\n\nsize: disk space consumed by loose objects, in KiB (unless -H is specified)\n\nin-pack: the number of in-pack objects\n\nsize-pack: disk space consumed by the packs, in KiB (unless -H is specified)\n\nprune-packable: the number of loose objects that are also present in the packs. These\nobjects could be pruned using git prune-packed.\n\ngarbage: the number of files in object database that are neither valid loose objects nor\nvalid packs\n\nsize-garbage: disk space consumed by garbage files, in KiB (unless -H is specified)\n\nalternate: absolute path of alternate object databases; may appear multiple times, one\nline per path. Note that if the path contains non-printable characters, it may be\nsurrounded by double-quotes and contain C-style backslashed escape sequences.\n\n#### -H, --human-readable\n\nPrint sizes in human readable format\n\n### GIT\n\nPart of the git(1) suite\n\n\n\nGit 2.34.1                                   02/26/2026                         GIT-COUNT-OBJECTS(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "git-count-objects",
        "section": "1",
        "mode": "man",
        "summary": "git-count-objects - Count unpacked number of objects and their disk consumption",
        "synopsis": "git count-objects [-v] [-H | --human-readable]",
        "flags": [
            {
                "flag": "-v",
                "long": "--verbose",
                "arg": null,
                "description": "Report in more detail: count: the number of loose objects size: disk space consumed by loose objects, in KiB (unless -H is specified) in-pack: the number of in-pack objects size-pack: disk space consumed by the packs, in KiB (unless -H is specified) prune-packable: the number of loose objects that are also present in the packs. These objects could be pruned using git prune-packed. garbage: the number of files in object database that are neither valid loose objects nor valid packs size-garbage: disk space consumed by garbage files, in KiB (unless -H is 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."
            },
            {
                "flag": "-H",
                "long": "--human-readable",
                "arg": null,
                "description": "Print sizes in human readable format"
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-v, --verbose",
                        "lines": 22,
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "-H, --human-readable",
                        "lines": 2,
                        "flag": "-H",
                        "long": "--human-readable"
                    }
                ]
            },
            {
                "name": "GIT",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}