Git fork
1git-pack-redundant(1)
2=====================
3
4NAME
5----
6git-pack-redundant - Find redundant pack files
7
8
9SYNOPSIS
10--------
11[verse]
12'git pack-redundant' [--verbose] [--alt-odb] (--all | <pack-filename>...)
13
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
28DESCRIPTION
29-----------
30This program computes which packs in your repository
31are redundant. The output is suitable for piping to
32`xargs rm` if you are in the root of the repository.
33
34'git pack-redundant' accepts a list of objects on standard input. Any objects
35given will be ignored when checking which packs are required. This makes the
36following command useful when wanting to remove packs which contain unreachable
37objects.
38
39git fsck --full --unreachable | cut -d ' ' -f3 | \
40git pack-redundant --all | xargs rm
41
42OPTIONS
43-------
44
45
46--all::
47 Processes all packs. Any filenames on the command line are ignored.
48
49--alt-odb::
50 Don't require objects present in packs from alternate object
51 database (odb) directories to be present in local packs.
52
53--verbose::
54 Outputs some statistics to stderr. Has a small performance penalty.
55
56SEE ALSO
57--------
58linkgit:git-pack-objects[1]
59linkgit:git-repack[1]
60linkgit:git-prune-packed[1]
61
62GIT
63---
64Part of the linkgit:git[1] suite