summaryrefslogtreecommitdiffstats
path: root/man1/git-pack-redundant.1
blob: f1b911b4cd010e42fe1bbc09296b5ddbd0bdd8c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
'\" t
.\"     Title: git-pack-redundant
.\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 09/15/2022
.\"    Manual: Git Manual
.\"    Source: Git 2.38.0.rc0
.\"  Language: English
.\"
.TH "GIT\-PACK\-REDUNDANT" "1" "09/15/2022" "Git 2\&.38\&.0\&.rc0" "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