| GIT-MULTI-PACK-INDEX(1) | Git Manual | GIT-MULTI-PACK-INDEX(1) |
git-multi-pack-index - Write and verify multi-pack-indexes
git multi-pack-index [<options>] write [--preferred-pack=<pack>]
[--[no-]bitmap] [--[no-]incremental] [--[no-]stdin-packs]
[--refs-snapshot=<path>] git multi-pack-index [<options>] compact [--[no-]incremental]
[--[no-]bitmap] <from> <to> git multi-pack-index [<options>] verify git multi-pack-index [<options>] expire git multi-pack-index [<options>] repack [--batch-size=<size>]
Write or verify a multi-pack-index (MIDX) file.
The following command-line options are applicable to all sub-commands:
--object-dir=<dir>
<dir> must be an alternate of the current repository.
--progress, --no-progress
The following subcommands are available:
write
--preferred-pack=<pack>
--[no-]bitmap
--stdin-packs
--refs-snapshot=<path>
A reference snapshot is composed of line-delimited OIDs corresponding to the reference tips, usually taken by git repack prior to generating a new pack. A line may optionally start with a + character to indicate that the reference which corresponds to that OID is "preferred" (see git-config(1)'s pack.preferBitmapTips.)
The file given at <path> is expected to be readable, and can contain duplicates. (If a given OID is given more than once, it is marked as preferred if at least one instance of it begins with the special + marker).
--incremental
compact
--incremental
--[no-]bitmap
Note that the compact command requires writing a version-2 midx that cannot be read by versions of Git prior to v2.54.
verify
expire
repack
If repack.packKeptObjects is false, then any pack-files with an associated .keep file will not be selected for the batch to repack.
$ git multi-pack-index write
$ git multi-pack-index write --preferred-pack=<pack> --bitmap
$ git multi-pack-index --object-dir <alt> write
$ git multi-pack-index verify
See The Multi-Pack-Index Design Document[1] and gitformat-pack(5) for more information on the multi-pack-index feature and its file format.
Part of the git(1) suite
| 12/12/2022 | Git 2.39.0 |