]>
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] |
b1889c36 | 12 | 'git pack-redundant' [ --verbose ] [ --alt-odb ] < --all | .pack filename ... > |
2a444781 LS |
13 | |
14 | DESCRIPTION | |
15 | ----------- | |
16 | This program computes which packs in your repository | |
17 | are redundant. The output is suitable for piping to | |
483bc4f0 | 18 | `xargs rm` if you are in the root of the repository. |
2a444781 | 19 | |
0b444cdb | 20 | 'git pack-redundant' accepts a list of objects on standard input. Any objects |
a6080a0a | 21 | given will be ignored when checking which packs are required. This makes the |
9a888b75 LS |
22 | following command useful when wanting to remove packs which contain unreachable |
23 | objects. | |
24 | ||
b1889c36 JN |
25 | git fsck --full --unreachable | cut -d ' ' -f3 | \ |
26 | git pack-redundant --all | xargs rm | |
9a888b75 | 27 | |
2a444781 LS |
28 | OPTIONS |
29 | ------- | |
30 | ||
2a444781 | 31 | |
1c3039e8 | 32 | --all:: |
addf88e4 | 33 | Processes all packs. Any filenames on the command line are ignored. |
1c3039e8 LS |
34 | |
35 | --alt-odb:: | |
36 | Don't require objects present in packs from alternate object | |
37 | directories to be present in local packs. | |
38 | ||
39 | --verbose:: | |
40 | Outputs some statistics to stderr. Has a small performance penalty. | |
2a444781 | 41 | |
56ae8df5 | 42 | SEE ALSO |
2a444781 | 43 | -------- |
5162e697 DM |
44 | linkgit:git-pack-objects[1] |
45 | linkgit:git-repack[1] | |
46 | linkgit:git-prune-packed[1] | |
2a444781 LS |
47 | |
48 | GIT | |
49 | --- | |
9e1f0a85 | 50 | Part of the linkgit:git[1] suite |