'\" t
.\" Title: git-pack-redundant
.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot
.\" Date: 01/14/2025
.\" Manual: Git Manual
.\" Source: Git 2.48.1
.\" Language: English
.\"
.TH "GIT\-PACK\-REDUNDANT" "1" "01/14/2025" "Git 2\&.48\&.1" "Git Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
git-pack-redundant \- Find redundant pack files
.SH "SYNOPSIS"
.sp
.nf
\fIgit pack\-redundant\fR [\-\-verbose] [\-\-alt\-odb] (\-\-all | \&...)
.fi
.sp
.SH "WARNING"
.sp
\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\&.
.sp
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[]\&.
.SH "DESCRIPTION"
.sp
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\&.
.sp
\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\&.
.sp
git fsck \-\-full \-\-unreachable | cut \-d \*(Aq \*(Aq \-f3 | \e git pack\-redundant \-\-all | xargs rm
.SH "OPTIONS"
.PP
\-\-all
.RS 4
Processes all packs\&. Any filenames on the command line are ignored\&.
.RE
.PP
\-\-alt\-odb
.RS 4
Don\(cqt require objects present in packs from alternate object database (odb) directories to be present in local packs\&.
.RE
.PP
\-\-verbose
.RS 4
Outputs some statistics to stderr\&. Has a small performance penalty\&.
.RE
.SH "SEE ALSO"
.sp
\fBgit-pack-objects\fR(1) \fBgit-repack\fR(1) \fBgit-prune-packed\fR(1)
.SH "GIT"
.sp
Part of the \fBgit\fR(1) suite
.SH "NOTES"
.IP " 1." 4
git@vger.kernel.org
.RS 4
\%mailto:git@vger.kernel.org
.RE