logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

git-pack-redundant.1 (3400B)


  1. '\" t
  2. .\" Title: git-pack-redundant
  3. .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
  4. .\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/>
  5. .\" Date: 2025-03-14
  6. .\" Manual: Git Manual
  7. .\" Source: Git 2.49.0
  8. .\" Language: English
  9. .\"
  10. .TH "GIT\-PACK\-REDUNDANT" "1" "2025-03-14" "Git 2\&.49\&.0" "Git Manual"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. git-pack-redundant \- Find redundant pack files
  32. .SH "SYNOPSIS"
  33. .sp
  34. .nf
  35. \fIgit pack\-redundant\fR [\-\-verbose] [\-\-alt\-odb] (\-\-all | <pack\-filename>\&...\:)
  36. .fi
  37. .SH "WARNING"
  38. .sp
  39. \fBgit\fR \fBpack\-redundant\fR has been deprecated and is scheduled for removal in a future version of Git\&. Because it can only remove entire duplicate packs and not individual duplicate objects, it is generally not a useful tool for reducing repository size\&. You are better off using \fBgit\fR \fBgc\fR to do so, which will put objects into a new pack, removing duplicates\&.
  40. .sp
  41. Running \fBpack\-redundant\fR without the \fB\-\-i\-still\-use\-this\fR flag will fail in this release\&. If you believe you have a use case for which \fBpack\-redundant\fR is better suited and oppose this removal, please contact the Git mailing list at \m[blue]\fBgit@vger\&.kernel\&.org\fR\m[]\&\s-2\u[1]\d\s+2\&. More information about the list is available at \m[blue]\fBhttps://git\-scm\&.com/community\fR\m[]\&.
  42. .SH "DESCRIPTION"
  43. .sp
  44. This program computes which packs in your repository are redundant\&. The output is suitable for piping to \fBxargs\fR \fBrm\fR if you are in the root of the repository\&.
  45. .sp
  46. \fIgit pack\-redundant\fR accepts a list of objects on standard input\&. Any objects given will be ignored when checking which packs are required\&. This makes the following command useful when wanting to remove packs which contain unreachable objects\&.
  47. .sp
  48. git fsck \-\-full \-\-unreachable | cut \-d \*(Aq \*(Aq \-f3 | \e git pack\-redundant \-\-all | xargs rm
  49. .SH "OPTIONS"
  50. .PP
  51. \-\-all
  52. .RS 4
  53. Processes all packs\&. Any filenames on the command line are ignored\&.
  54. .RE
  55. .PP
  56. \-\-alt\-odb
  57. .RS 4
  58. Don\(cqt require objects present in packs from alternate object database (odb) directories to be present in local packs\&.
  59. .RE
  60. .PP
  61. \-\-verbose
  62. .RS 4
  63. Outputs some statistics to stderr\&. Has a small performance penalty\&.
  64. .RE
  65. .SH "SEE ALSO"
  66. .sp
  67. \fBgit-pack-objects\fR(1) \fBgit-repack\fR(1) \fBgit-prune-packed\fR(1)
  68. .SH "GIT"
  69. .sp
  70. Part of the \fBgit\fR(1) suite
  71. .SH "NOTES"
  72. .IP " 1." 4
  73. git@vger.kernel.org
  74. .RS 4
  75. \%mailto:git@vger.kernel.org
  76. .RE