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/>
7 .\" Source: Git 2.46.1.506.ged155187b4
10 .TH "GIT\-PACK\-REDUNDANT" "1" "2024-09-13" "Git 2\&.46\&.1\&.506\&.ged1551" "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>\&...\:)
39 \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\&.
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[]\&.
44 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\&.
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\&.
48 git fsck \-\-full \-\-unreachable | cut \-d \*(Aq \*(Aq \-f3 | \e git pack\-redundant \-\-all | xargs rm
53 Processes all packs\&. Any filenames on the command line are ignored\&.
58 Don\(cqt require objects present in packs from alternate object database (odb) directories to be present in local packs\&.
63 Outputs some statistics to stderr\&. Has a small performance penalty\&.
67 \fBgit-pack-objects\fR(1) \fBgit-repack\fR(1) \fBgit-prune-packed\fR(1)
70 Part of the \fBgit\fR(1) suite
75 \%mailto:git@vger.kernel.org