blob: cb9b4d2e460adaa46ee863c37283840c2bdb9333 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-count-objects(1)
2====================
3
4NAME
5----
Junio C Hamano7c73c662007-01-19 00:37:506git-count-objects - Count unpacked number of objects and their disk consumption
Junio C Hamano1a4e8412005-12-27 08:17:237
8SYNOPSIS
9--------
Junio C Hamano15567bc2011-07-23 00:51:5910[verse]
Junio C Hamano76927822013-04-19 21:26:5711'git count-objects' [-v] [-H | --human-readable]
Junio C Hamano1a4e8412005-12-27 08:17:2312
13DESCRIPTION
14-----------
15This counts the number of unpacked object files and disk space consumed by
16them, to help you decide when it is a good time to repack.
17
Junio C Hamano88a3a072006-05-04 08:01:4318
19OPTIONS
20-------
21-v::
Junio C Hamanoeb415992008-06-08 22:49:4722--verbose::
Junio C Hamano5e7f1312013-03-21 22:49:0123Report in more detail:
24+
25count: the number of loose objects
26+
Junio C Hamano76927822013-04-19 21:26:5727size: disk space consumed by loose objects, in KiB (unless -H is specified)
Junio C Hamano5e7f1312013-03-21 22:49:0128+
29in-pack: the number of in-pack objects
30+
Junio C Hamano76927822013-04-19 21:26:5731size-pack: disk space consumed by the packs, in KiB (unless -H is specified)
Junio C Hamano5e7f1312013-03-21 22:49:0132+
33prune-packable: the number of loose objects that are also present in
34the packs. These objects could be pruned using `git prune-packed`.
35+
Junio C Hamanod75148a2014-04-08 19:48:3836garbage: the number of files in object database that are neither valid loose
37objects nor valid packs
Junio C Hamano5e7f1312013-03-21 22:49:0138+
Junio C Hamano76927822013-04-19 21:26:5739size-garbage: disk space consumed by garbage files, in KiB (unless -H is
40specified)
Junio C Hamanoc0859f72016-10-17 22:22:5741+
42alternate: absolute path of alternate object databases; may appear
43multiple times, one line per path. Note that if the path contains
44non-printable characters, it may be surrounded by double-quotes and
45contain C-style backslashed escape sequences.
Junio C Hamano76927822013-04-19 21:26:5746
47-H::
48--human-readable::
49
50Print sizes in human readable format
Junio C Hamano88a3a072006-05-04 08:01:4351
Junio C Hamano1a4e8412005-12-27 08:17:2352GIT
53---
Junio C Hamanof7c042d2008-06-06 22:50:5354Part of the linkgit:git[1] suite