1GIT-MULTI-PACK-IN(1) Git Manual GIT-MULTI-PACK-IN(1)
2
3
4
6 git-multi-pack-index - Write and verify multi-pack-indexes
7
9 git multi-pack-index [--object-dir=<dir>] <subcommand>
10
11
13 Write or verify a multi-pack-index (MIDX) file.
14
16 --object-dir=<dir>
17 Use given directory for the location of Git objects. We check
18 <dir>/packs/multi-pack-index for the current MIDX file, and
19 <dir>/packs for the pack-files to index.
20
21 The following subcommands are available:
22
23 write
24 Write a new MIDX file.
25
26 verify
27 Verify the contents of the MIDX file.
28
29 expire
30 Delete the pack-files that are tracked by the MIDX file, but have
31 no objects referenced by the MIDX. Rewrite the MIDX file afterward
32 to remove all references to these pack-files.
33
34 repack
35 Create a new pack-file containing objects in small pack-files
36 referenced by the multi-pack-index. If the size given by the
37 --batch-size=<size> argument is zero, then create a pack containing
38 all objects referenced by the multi-pack-index. For a non-zero
39 batch size, Select the pack-files by examining packs from
40 oldest-to-newest, computing the "expected size" by counting the
41 number of objects in the pack referenced by the multi-pack-index,
42 then divide by the total number of objects in the pack and multiply
43 by the pack size. We select packs with expected size below the
44 batch size until the set of packs have total expected size at least
45 the batch size. If the total size does not reach the batch size,
46 then do nothing. If a new pack- file is created, rewrite the
47 multi-pack-index to reference the new pack-file. A later run of git
48 multi-pack-index expire will delete the pack-files that were part
49 of this batch.
50
52 · Write a MIDX file for the packfiles in the current .git folder.
53
54 $ git multi-pack-index write
55
56
57 · Write a MIDX file for the packfiles in an alternate object store.
58
59 $ git multi-pack-index --object-dir <alt> write
60
61
62 · Verify the MIDX file for the packfiles in the current .git folder.
63
64 $ git multi-pack-index verify
65
66
68 See The Multi-Pack-Index Design Document[1] and The Multi-Pack-Index
69 Format[2] for more information on the multi-pack-index feature.
70
72 Part of the git(1) suite
73
75 1. The Multi-Pack-Index Design Document
76 file:///usr/share/doc/git/technical/multi-pack-index.html
77
78 2. The Multi-Pack-Index Format
79 file:///usr/share/doc/git/technical/pack-format.html
80
81
82
83Git 2.24.1 12/10/2019 GIT-MULTI-PACK-IN(1)