git-pack-redundant.1   [plain text]


'\" t
.\"     Title: git-pack-redundant
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\"      Date: 06/01/2011
.\"    Manual: Git Manual
.\"    Source: Git 1.7.5.4
.\"  Language: English
.\"
.TH "GIT\-PACK\-REDUNDANT" "1" "06/01/2011" "Git 1\&.7\&.5\&.4" "Git Manual"
.\" -----------------------------------------------------------------
.\" * 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
\fIgit pack\-redundant\fR [ \-\-verbose ] [ \-\-alt\-odb ] < \-\-all | \&.pack filename \&... >
.SH "DESCRIPTION"
.sp
This program computes which packs in your repository are redundant\&. The output is suitable for piping to xargs rm 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