1GIT-PACK-REDUNDANT(1)             Git Manual             GIT-PACK-REDUNDANT(1)
2
3
4

NAME

6       git-pack-redundant - Find redundant pack files
7

SYNOPSIS

9       git pack-redundant [--verbose] [--alt-odb] (--all | <pack-filename>...)
10

WARNING

12       git pack-redundant has been deprecated and is scheduled for removal in
13       a future version of Git. Because it can only remove entire duplicate
14       packs and not individual duplicate objects, it is generally not a
15       useful tool for reducing repository size. You are better off using git
16       gc to do so, which will put objects into a new pack, removing
17       duplicates.
18
19       Running pack-redundant without the --i-still-use-this flag will fail in
20       this release. If you believe you have a use case for which
21       pack-redundant is better suited and oppose this removal, please contact
22       the Git mailing list at git@vger.kernel.org[1]. More information about
23       the list is available at https://git-scm.com/community.
24

DESCRIPTION

26       This program computes which packs in your repository are redundant. The
27       output is suitable for piping to xargs rm if you are in the root of the
28       repository.
29
30       git pack-redundant accepts a list of objects on standard input. Any
31       objects given will be ignored when checking which packs are required.
32       This makes the following command useful when wanting to remove packs
33       which contain unreachable objects.
34
35       git fsck --full --unreachable | cut -d ' ' -f3 | \ git pack-redundant
36       --all | xargs rm
37

OPTIONS

39       --all
40           Processes all packs. Any filenames on the command line are ignored.
41
42       --alt-odb
43           Don’t require objects present in packs from alternate object
44           database (odb) directories to be present in local packs.
45
46       --verbose
47           Outputs some statistics to stderr. Has a small performance penalty.
48

SEE ALSO

50       git-pack-objects(1) git-repack(1) git-prune-packed(1)
51

GIT

53       Part of the git(1) suite
54

NOTES

56        1. git@vger.kernel.org
57           mailto:git@vger.kernel.org
58
59
60
61Git 2.43.0                        11/20/2023             GIT-PACK-REDUNDANT(1)
Impressum