HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git count-objects — Count the number of unpacked objects and their disk consumption. More information: <https://git-scm.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandcliobjectscountunpackedgit count-objectsnumber

Problem

How to use the git count-objects command: Count the number of unpacked objects and their disk consumption. More information: <https://git-scm.com/docs/git-count-objects>.

Solution

git count-objects — Count the number of unpacked objects and their disk consumption. More information: <https://git-scm.com/docs/git-count-objects>.

Count all objects and display the total disk usage:
git count-objects


Display a count of all objects and their total disk usage, displaying sizes in human-readable units:
git count-objects {{[-H|--human-readable]}}


Display more verbose information:
git count-objects {{[-v|--verbose]}}


Display more verbose information, displaying sizes in human-readable units:
git count-objects {{[-H|--human-readable]}} {{[-v|--verbose]}}

Code Snippets

Count all objects and display the total disk usage

git count-objects

Display a count of all objects and their total disk usage, displaying sizes in human-readable units

git count-objects {{[-H|--human-readable]}}

Display more verbose information

git count-objects {{[-v|--verbose]}}

Display more verbose information, displaying sizes in human-readable units

git count-objects {{[-H|--human-readable]}} {{[-v|--verbose]}}

Context

tldr-pages: common/git count-objects

Revisions (0)

No revisions yet.