]>
Commit | Line | Data |
---|---|---|
9bc0f32c | 1 | git-pack-redundant(1) |
2a444781 LS |
2 | ===================== |
3 | ||
4 | NAME | |
5 | ---- | |
c3f0baac | 6 | git-pack-redundant - Find redundant pack files |
2a444781 LS |
7 | |
8 | ||
9 | SYNOPSIS | |
10 | -------- | |
7791a1d9 | 11 | [verse] |
e2f4e7e8 | 12 | 'git pack-redundant' [--verbose] [--alt-odb] (--all | <pack-filename>...) |
2a444781 | 13 | |
fcf31daa JK |
14 | WARNING |
15 | ------- | |
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. | |
21 | ||
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. | |
27 | ||
2a444781 LS |
28 | DESCRIPTION |
29 | ----------- | |
30 | This program computes which packs in your repository | |
31 | are 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 | 35 | given will be ignored when checking which packs are required. This makes the |
9a888b75 LS |
36 | following command useful when wanting to remove packs which contain unreachable |
37 | objects. | |
38 | ||
b1889c36 JN |
39 | git fsck --full --unreachable | cut -d ' ' -f3 | \ |
40 | git pack-redundant --all | xargs rm | |
9a888b75 | 41 | |
2a444781 LS |
42 | OPTIONS |
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 | 56 | SEE ALSO |
2a444781 | 57 | -------- |
5162e697 DM |
58 | linkgit:git-pack-objects[1] |
59 | linkgit:git-repack[1] | |
60 | linkgit:git-prune-packed[1] | |
2a444781 LS |
61 | |
62 | GIT | |
63 | --- | |
9e1f0a85 | 64 | Part of the linkgit:git[1] suite |