| '\" t |
| .\" Title: git-pack-redundant |
| .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] |
| .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> |
| .\" Date: 11/22/2018 |
| .\" Manual: Git Manual |
| .\" Source: Git 2.20.0.rc1 |
| .\" Language: English |
| .\" |
| .TH "GIT\-PACK\-REDUNDANT" "1" "11/22/2018" "Git 2\&.20\&.0\&.rc1" "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 | \&.pack filename \&... > |
| .fi |
| .sp |
| .SH "DESCRIPTION" |
| .sp |
| 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\&. |
| .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 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 |