git-count-objects.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. git-count-objects(1)
  2. ====================
  3. NAME
  4. ----
  5. git-count-objects - Count unpacked number of objects and their disk consumption
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'git count-objects' [-v] [-H | --human-readable]
  10. DESCRIPTION
  11. -----------
  12. This counts the number of unpacked object files and disk space consumed by
  13. them, to help you decide when it is a good time to repack.
  14. OPTIONS
  15. -------
  16. -v::
  17. --verbose::
  18. Report in more detail:
  19. +
  20. count: the number of loose objects
  21. +
  22. size: disk space consumed by loose objects, in KiB (unless -H is specified)
  23. +
  24. in-pack: the number of in-pack objects
  25. +
  26. size-pack: disk space consumed by the packs, in KiB (unless -H is specified)
  27. +
  28. prune-packable: the number of loose objects that are also present in
  29. the packs. These objects could be pruned using `git prune-packed`.
  30. +
  31. garbage: the number of files in object database that are neither valid loose
  32. objects nor valid packs
  33. +
  34. size-garbage: disk space consumed by garbage files, in KiB (unless -H is
  35. specified)
  36. +
  37. alternate: absolute path of alternate object databases; may appear
  38. multiple times, one line per path. Note that if the path contains
  39. non-printable characters, it may be surrounded by double-quotes and
  40. contain C-style backslashed escape sequences.
  41. -H::
  42. --human-readable::
  43. Print sizes in human readable format
  44. GIT
  45. ---
  46. Part of the linkgit:git[1] suite