{
    "mode": "man",
    "parameter": "git-count-objects",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/git-count-objects/1/json",
    "generated": "2026-05-30T05:14:29Z",
    "synopsis": "git count-objects [-v] [-H | --human-readable]",
    "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": []
        }
    },
    "summary": "git-count-objects - Count unpacked number of objects and their disk consumption",
    "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": []
}