]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-pack-redundant.txt
The fifth batch
[thirdparty/git.git] / Documentation / git-pack-redundant.txt
CommitLineData
9bc0f32c 1git-pack-redundant(1)
2a444781
LS
2=====================
3
4NAME
5----
c3f0baac 6git-pack-redundant - Find redundant pack files
2a444781
LS
7
8
9SYNOPSIS
10--------
7791a1d9 11[verse]
e2f4e7e8 12'git pack-redundant' [--verbose] [--alt-odb] (--all | <pack-filename>...)
2a444781 13
fcf31daa
JK
14WARNING
15-------
16`git pack-redundant` has been deprecated and is scheduled for removal in
17a future version of Git. Because it can only remove entire duplicate
18packs and not individual duplicate objects, it is generally not a useful
19tool for reducing repository size. You are better off using `git gc` to
20do so, which will put objects into a new pack, removing duplicates.
21
22Running `pack-redundant` without the `--i-still-use-this` flag will fail
23in this release. If you believe you have a use case for which
24`pack-redundant` is better suited and oppose this removal, please
25contact the Git mailing list at git@vger.kernel.org. More information
26about the list is available at https://git-scm.com/community.
27
2a444781
LS
28DESCRIPTION
29-----------
30This program computes which packs in your repository
31are redundant. The output is suitable for piping to
483bc4f0 32`xargs rm` if you are in the root of the repository.
2a444781 33
0b444cdb 34'git pack-redundant' accepts a list of objects on standard input. Any objects
a6080a0a 35given will be ignored when checking which packs are required. This makes the
9a888b75
LS
36following command useful when wanting to remove packs which contain unreachable
37objects.
38
b1889c36
JN
39git fsck --full --unreachable | cut -d ' ' -f3 | \
40git pack-redundant --all | xargs rm
9a888b75 41
2a444781
LS
42OPTIONS
43-------
44
2a444781 45
1c3039e8 46--all::
addf88e4 47 Processes all packs. Any filenames on the command line are ignored.
1c3039e8
LS
48
49--alt-odb::
50 Don't require objects present in packs from alternate object
fa8e8d5b 51 database (odb) directories to be present in local packs.
1c3039e8
LS
52
53--verbose::
54 Outputs some statistics to stderr. Has a small performance penalty.
2a444781 55
56ae8df5 56SEE ALSO
2a444781 57--------
5162e697
DM
58linkgit:git-pack-objects[1]
59linkgit:git-repack[1]
60linkgit:git-prune-packed[1]
2a444781
LS
61
62GIT
63---
9e1f0a85 64Part of the linkgit:git[1] suite