2 .\" Title: git-count-objects
3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
7 .\" Source: Git 2.42.0.rc0
10 .TH "GIT\-COUNT\-OBJECTS" "1" "2023\-08\-04" "Git 2\&.42\&.0\&.rc0" "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]
40 This 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\&.
45 Report in more detail:
47 count: the number of loose objects
49 size: disk space consumed by loose objects, in KiB (unless \-H is specified)
51 in\-pack: the number of in\-pack objects
53 size\-pack: disk space consumed by the packs, in KiB (unless \-H is specified)
55 prune\-packable: the number of loose objects that are also present in the packs\&. These objects could be pruned using
56 \fBgit prune\-packed\fR\&.
58 garbage: the number of files in object database that are neither valid loose objects nor valid packs
60 size\-garbage: disk space consumed by garbage files, in KiB (unless \-H is specified)
62 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\&.
65 \-H, \-\-human\-readable
67 Print sizes in human readable format
71 Part of the \fBgit\fR(1) suite