1GIT-COUNT-OBJECTS(1) Git Manual GIT-COUNT-OBJECTS(1)
2
3
4
6 git-count-objects - Count unpacked number of objects and their disk
7 consumption
8
10 git count-objects [-v] [-H | --human-readable]
11
13 This counts the number of unpacked object files and disk space consumed
14 by them, to help you decide when it is a good time to repack.
15
17 -v, --verbose
18 Report in more detail:
19
20 count: the number of loose objects
21
22 size: disk space consumed by loose objects, in KiB (unless -H is
23 specified)
24
25 in-pack: the number of in-pack objects
26
27 size-pack: disk space consumed by the packs, in KiB (unless -H is
28 specified)
29
30 prune-packable: the number of loose objects that are also present
31 in the packs. These objects could be pruned using git prune-packed.
32
33 garbage: the number of files in object database that are neither
34 valid loose objects nor valid packs
35
36 size-garbage: disk space consumed by garbage files, in KiB (unless
37 -H is specified)
38
39 alternate: absolute path of alternate object databases; may appear
40 multiple times, one line per path. Note that if the path contains
41 non-printable characters, it may be surrounded by double-quotes and
42 contain C-style backslashed escape sequences.
43
44 -H, --human-readable
45 Print sizes in human readable format
46
48 Part of the git(1) suite
49
50
51
52Git 2.33.1 2021-10-12 GIT-COUNT-OBJECTS(1)