6 git-pack-redundant - Find redundant pack files
12 'git pack-redundant' [--verbose] [--alt-odb] (--all | <pack-filename>...)
16 `git pack-redundant` has been deprecated and is scheduled for removal in
17 a future version of Git. Because it can only remove entire duplicate
18 packs and not individual duplicate objects, it is generally not a useful
19 tool for reducing repository size. You are better off using `git gc` to
20 do so, which will put objects into a new pack, removing duplicates.
22 Running `pack-redundant` without the `--i-still-use-this` flag will fail
23 in this release. If you believe you have a use case for which
24 `pack-redundant` is better suited and oppose this removal, please
25 contact the Git mailing list at git@vger.kernel.org. More information
26 about the list is available at https://git-scm.com/community.
30 This program computes which packs in your repository
31 are redundant. The output is suitable for piping to
32 `xargs rm` if you are in the root of the repository.
34 'git pack-redundant' accepts a list of objects on standard input. Any objects
35 given will be ignored when checking which packs are required. This makes the
36 following command useful when wanting to remove packs which contain unreachable
39 git fsck --full --unreachable | cut -d ' ' -f3 | \
40 git pack-redundant --all | xargs rm
47 Processes all packs. Any filenames on the command line are ignored.
50 Don't require objects present in packs from alternate object
51 database (odb) directories to be present in local packs.
54 Outputs some statistics to stderr. Has a small performance penalty.
58 linkgit:git-pack-objects[1]
60 linkgit:git-prune-packed[1]
64 Part of the linkgit:git[1] suite