- bullseye 1:2.30.2-1
- bullseye-backports 1:2.39.2-1~bpo11+1
- testing 1:2.39.2-1.1
- unstable 1:2.40.1-1
- experimental 1:2.40.1+next.20230427-1
GIT-INDEX-PACK(1) | Git Manual | GIT-INDEX-PACK(1) |
NAME¶
git-index-pack - Build pack index file for an existing packed archive
SYNOPSIS¶
git index-pack [-v] [-o <index-file>] <pack-file> git index-pack --stdin [--fix-thin] [--keep] [-v] [-o <index-file>]
[<pack-file>]
DESCRIPTION¶
Reads a packed archive (.pack) from the specified file, and builds a pack index file (.idx) for it. The packed archive together with the pack index can then be placed in the objects/pack/ directory of a Git repository.
OPTIONS¶
-v
-o <index-file>
--stdin
--fix-thin
--keep
--keep=<msg>
--index-version=<version>[,<offset>]
--strict
--check-self-contained-and-connected
--fsck-objects
--threads=<n>
--max-input-size=<size>
--object-format=<hash-algorithm>
This option cannot be used with --stdin.
THIS OPTION IS EXPERIMENTAL! SHA-256 support is experimental and still in an early stage. A SHA-256 repository will in general not be able to share work with "regular" SHA-1 repositories. It should be assumed that, e.g., Git internal file formats in relation to SHA-256 repositories may change in backwards-incompatible ways. Only use --object-format=sha256 for testing purposes.
NOTES¶
Once the index has been created, the hash that goes into the name of the pack/idx file is printed to stdout. If --stdin was also used then this is prefixed by either "pack\t", or "keep\t" if a new .keep file was successfully created. This is useful to remove a .keep file used as a lock to prevent the race with git repack mentioned above.
GIT¶
Part of the git(1) suite
03/10/2021 | Git 2.30.2 |