- Tumbleweed 2.54.0-1.1
- Leap-16.0
- Leap-15.6
| GIT-MULTI-PACK-INDEX(1) | Git Manual | GIT-MULTI-PACK-INDEX(1) |
NAME¶
git-multi-pack-index - Write and verify multi-pack-indexes
SYNOPSIS¶
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>]
DESCRIPTION¶
Write or verify a multi-pack-index (MIDX) file.
OPTIONS¶
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
Note
this mode is incompatible with incremental MIDX files.
repack
If repack.packKeptObjects is false, then any pack-files with an associated .keep file will not be selected for the batch to repack.
Note
this mode is incompatible with incremental MIDX files.
EXAMPLES¶
$ 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 ALSO¶
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.
GIT¶
Part of the git(1) suite
NOTES¶
- 1.
- The Multi-Pack-Index Design Document
| 04/20/2026 | Git 2.54.0 |