2 .\" Title: git-pack-redundant
3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
7 .\" Source: Git 2.42.0.rc1
10 .TH "GIT\-PACK\-REDUNDANT" "1" "2023\-08\-09" "Git 2\&.42\&.0\&.rc1" "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 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 git-pack-redundant \- Find redundant pack files
35 \fIgit pack\-redundant\fR [\-\-verbose] [\-\-alt\-odb] (\-\-all | <pack\-filename>\&...)
40 \fBgit pack\-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 gc\fR to do so, which will put objects into a new pack, removing duplicates\&.
42 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[]\&.
45 This program computes which packs in your repository are redundant\&. The output is suitable for piping to \fBxargs rm\fR if you are in the root of the repository\&.
47 \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\&.
49 git fsck \-\-full \-\-unreachable | cut \-d \*(Aq \*(Aq \-f3 | \e git pack\-redundant \-\-all | xargs rm
54 Processes all packs\&. Any filenames on the command line are ignored\&.
59 Don\(cqt require objects present in packs from alternate object database (odb) directories to be present in local packs\&.
64 Outputs some statistics to stderr\&. Has a small performance penalty\&.
68 \fBgit-pack-objects\fR(1) \fBgit-repack\fR(1) \fBgit-prune-packed\fR(1)
71 Part of the \fBgit\fR(1) suite
76 \%mailto:git@vger.kernel.org