2 .\" Title: git-count-objects
3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/>
7 .\" Source: Git 2.46.1.565.g6531f31ef3
10 .TH "GIT\-COUNT\-OBJECTS" "1" "2024-09-18" "Git 2\&.46\&.1\&.565\&.g6531f3" "Git Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 git-count-objects \- Count unpacked number of objects and their disk consumption
35 \fIgit count\-objects\fR [\-v] [\-H | \-\-human\-readable]
39 Counts the number of unpacked object files and disk space consumed by them, to help you decide when it is a good time to repack\&.
44 Provide more detailed reports:
46 count: the number of loose objects
48 size: disk space consumed by loose objects, in KiB (unless \-H is specified)
50 in\-pack: the number of in\-pack objects
52 size\-pack: disk space consumed by the packs, in KiB (unless \-H is specified)
54 prune\-packable: the number of loose objects that are also present in the packs\&. These objects could be pruned using
55 \fBgit prune\-packed\fR\&.
57 garbage: the number of files in the object database that are neither valid loose objects nor valid packs
59 size\-garbage: disk space consumed by garbage files, in KiB (unless \-H is specified)
61 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\&.
64 \-H, \-\-human\-readable
66 Print sizes in human readable format
70 Part of the \fBgit\fR(1) suite