blob: b300e846f13d6a7f340286b4624dc3b0da4ac740 [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+
36garbage: the number of files in object database that are not valid
37loose objects nor valid packs
38+
Junio C Hamano76927822013-04-19 21:26:5739size-garbage: disk space consumed by garbage files, in KiB (unless -H is
40specified)
41
42-H::
43--human-readable::
44
45Print sizes in human readable format
Junio C Hamano88a3a072006-05-04 08:01:4346
Junio C Hamano1a4e8412005-12-27 08:17:2347GIT
48---
Junio C Hamanof7c042d2008-06-06 22:50:5349Part of the linkgit:git[1] suite