blob: cb9b4d2e460adaa46ee863c37283840c2bdb9333 [file] [log] [blame]
Junio C Hamano215a7ad2005-09-07 17:26:23 -07001git-count-objects(1)
2====================
Junio C Hamano7fc9d692005-08-23 01:49:47 -07003
4NAME
5----
Junio C Hamanoc3f0baa2007-01-18 15:53:37 -08006git-count-objects - Count unpacked number of objects and their disk consumption
Junio C Hamano7fc9d692005-08-23 01:49:47 -07007
8SYNOPSIS
9--------
Martin von Zweigbergk7791a1d2011-07-01 22:38:26 -040010[verse]
Antoine Pelisse19182252013-04-10 21:03:24 +020011'git count-objects' [-v] [-H | --human-readable]
Junio C Hamano7fc9d692005-08-23 01:49:47 -070012
13DESCRIPTION
14-----------
A Large Angry SCM52a22d12005-08-26 18:18:48 -070015This 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.
Junio C Hamano7fc9d692005-08-23 01:49:47 -070017
Junio C Hamano468eb792006-05-01 23:05:39 -070018
19OPTIONS
20-------
21-v::
Stephan Beyer459cf2e2008-06-08 03:36:10 +020022--verbose::
Nguyễn Thái Ngọc Duy0bdaa122013-02-08 10:48:25 +070023 Report in more detail:
24+
25count: the number of loose objects
26+
Antoine Pelisse19182252013-04-10 21:03:24 +020027size: disk space consumed by loose objects, in KiB (unless -H is specified)
Nguyễn Thái Ngọc Duy0bdaa122013-02-08 10:48:25 +070028+
29in-pack: the number of in-pack objects
30+
Antoine Pelisse19182252013-04-10 21:03:24 +020031size-pack: disk space consumed by the packs, in KiB (unless -H is specified)
Nguyễn Thái Ngọc Duy0bdaa122013-02-08 10:48:25 +070032+
33prune-packable: the number of loose objects that are also present in
34the packs. These objects could be pruned using `git prune-packed`.
35+
Justin Lebara58088a2014-03-31 15:11:44 -070036garbage: the number of files in object database that are neither valid loose
37objects nor valid packs
Nguyễn Thái Ngọc Duy1a20dd42013-02-13 16:13:19 +070038+
Antoine Pelisse19182252013-04-10 21:03:24 +020039size-garbage: disk space consumed by garbage files, in KiB (unless -H is
40specified)
Jeff King5fe849d2016-10-03 16:36:18 -040041+
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.
Antoine Pelisse19182252013-04-10 21:03:24 +020046
47-H::
48--human-readable::
49
50Print sizes in human readable format
Junio C Hamano468eb792006-05-01 23:05:39 -070051
Junio C Hamano7fc9d692005-08-23 01:49:47 -070052GIT
53---
Christian Couder9e1f0a82008-06-06 09:07:32 +020054Part of the linkgit:git[1] suite