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

DESCRIPTION

12       This program computes which packs in your repository are redundant. The
13       output is suitable for piping to xargs rm if you are in the root of the
14       repository.
15
16       git pack-redundant accepts a list of objects on standard input. Any
17       objects given will be ignored when checking which packs are required.
18       This makes the following command useful when wanting to remove packs
19       which contain unreachable objects.
20
21       git fsck --full --unreachable | cut -d ' ' -f3 | \ git pack-redundant
22       --all | xargs rm
23

OPTIONS

25       --all
26           Processes all packs. Any filenames on the command line are ignored.
27
28       --alt-odb
29           Don’t require objects present in packs from alternate object
30           directories to be present in local packs.
31
32       --verbose
33           Outputs some statistics to stderr. Has a small performance penalty.
34

SEE ALSO

36       git-pack-objects(1) git-repack(1) git-prune-packed(1)
37

GIT

39       Part of the git(1) suite
40
41
42
43Git 2.36.1                        2022-05-05             GIT-PACK-REDUNDANT(1)
Impressum