blob: 48b72a5449c366785406ebd280350866148a876b (
plain)
1
2
3
4
5
6
|
<h1>git-count-objects</h1> <h2 id="_name">Name</h2> <div class="sectionbody"> <p>git-count-objects - Count unpacked number of objects and their disk consumption</p> </div> <h2 id="_synopsis">Synopsis</h2> <div class="sectionbody"> <div class="verseblock"> <pre class="content" data-language="shell">git count-objects [-v] [-H | --human-readable]</pre> </div> </div> <h2 id="_description">Description</h2> <div class="sectionbody"> <p>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.</p> </div> <h2 id="_options">Options</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-count-objects.txt--v"> -v </dt> <dt class="hdlist1" id="Documentation/git-count-objects.txt---verbose"> --verbose </dt> <dd> <p>Provide more detailed reports:</p> <p>count: the number of loose objects</p> <p>size: disk space consumed by loose objects, in KiB (unless -H is specified)</p> <p>in-pack: the number of in-pack objects</p> <p>size-pack: disk space consumed by the packs, in KiB (unless -H is specified)</p> <p>prune-packable: the number of loose objects that are also present in the packs. These objects could be pruned using <code>git prune-packed</code>.</p> <p>garbage: the number of files in the object database that are neither valid loose objects nor valid packs</p> <p>size-garbage: disk space consumed by garbage files, in KiB (unless -H is specified)</p> <p>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.</p> </dd> <dt class="hdlist1" id="Documentation/git-count-objects.txt--H"> -H </dt> <dt class="hdlist1" id="Documentation/git-count-objects.txt---human-readable"> --human-readable </dt> <dd> <p>Print sizes in human readable format</p> </dd> </dl> </div> </div><div class="_attribution">
<p class="_attribution-p">
© 2012–2024 Scott Chacon and others<br>Licensed under the MIT License.<br>
<a href="https://git-scm.com/docs/git-count-objects" class="_attribution-link">https://git-scm.com/docs/git-count-objects</a>
</p>
</div>
|