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.38.0.15.gbbe21b64a0
10 .TH "GIT\-PACK\-REDUNDANT" "1" "10/07/2022" "Git 2\&.38\&.0\&.15\&.gbbe21b6" "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 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\&.
42 \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\&.
44 git fsck \-\-full \-\-unreachable | cut \-d \(aq \(aq \-f3 | \e git pack\-redundant \-\-all | xargs rm
49 Processes all packs\&. Any filenames on the command line are ignored\&.
54 Don\(cqt require objects present in packs from alternate object directories to be present in local packs\&.
59 Outputs some statistics to stderr\&. Has a small performance penalty\&.
63 \fBgit-pack-objects\fR(1) \fBgit-repack\fR(1) \fBgit-prune-packed\fR(1)
66 Part of the \fBgit\fR(1) suite