LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-verify-pack

Validate packed Git archive files

TLDR

Verify a pack index file
$ git verify-pack .git/objects/pack/pack-hash.idx
copy
Verify and list all objects in the pack
$ git verify-pack -v .git/objects/pack/pack-hash.idx
copy
Show only delta chain statistics without verifying
$ git verify-pack -s .git/objects/pack/pack-hash.idx
copy

SYNOPSIS

git verify-pack [-v | --verbose] [-s | --stat-only] [--] pack.idx...

DESCRIPTION

git verify-pack reads each given idx file and verifies the corresponding pack file and its index. It reports any corruption or inconsistencies found.With -v, for non-deltified objects it shows: object-name, type, size, size-in-packfile, offset-in-packfile. For deltified objects it additionally shows: depth and base-object-name.

PARAMETERS

-v, --verbose

After verifying the pack, show the list of objects contained in the pack and a histogram of delta chain length
-s, --stat-only
Do not verify the pack contents; only show the histogram of delta chain length. With --verbose, the list of objects is also shown
--
Do not interpret any more arguments as options

SEE ALSO

Copied to clipboard
Kai