{
    "content": [
        {
            "type": "text",
            "text": "# GIT-COUNT-OBJECTS (man)\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## TLDR\n\n> Count the number of unpacked objects and their disk consumption.\n\n- Count all objects and display the total disk usage:\n  `git count-objects`\n- Display a count of all objects and their total disk usage, displaying sizes in human-readable units:\n  `git count-objects {{-H|--human-readable}}`\n- Display more verbose information:\n  `git count-objects {{-v|--verbose}}`\n- Display more verbose information, displaying sizes in human-readable units:\n  `git count-objects {{-H|--human-readable}} {{-v|--verbose}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (2 subsections)\n- **GIT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "GIT-COUNT-OBJECTS",
        "section": "",
        "mode": "man",
        "summary": "git-count-objects - Count unpacked number of objects and their disk consumption",
        "synopsis": "git count-objects [-v] [-H | --human-readable]",
        "tldr_summary": "Count the number of unpacked objects and their disk consumption.",
        "tldr_examples": [
            {
                "description": "Count all objects and display the total disk usage",
                "command": "git count-objects"
            },
            {
                "description": "Display a count of all objects and their total disk usage, displaying sizes in human-readable units",
                "command": "git count-objects {{-H|--human-readable}}"
            },
            {
                "description": "Display more verbose information",
                "command": "git count-objects {{-v|--verbose}}"
            },
            {
                "description": "Display more verbose information, displaying sizes in human-readable units",
                "command": "git count-objects {{-H|--human-readable}} {{-v|--verbose}}"
            }
        ],
        "tldr_source": "official",
        "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": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "git-count-objects - Count unpacked number of objects and their disk consumption\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "git count-objects [-v] [-H | --human-readable]\n\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This 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",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-v, --verbose",
                        "content": "Report 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",
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "-H, --human-readable",
                        "content": "Print sizes in human readable format\n",
                        "flag": "-H",
                        "long": "--human-readable"
                    }
                ]
            },
            "GIT": {
                "content": "Part of the git(1) suite\n\n\n\nGit 2.34.1                                   02/26/2026                         GIT-COUNT-OBJECTS(1)",
                "subsections": []
            }
        }
    }
}