Create index for an existing pack.

Section: Transfer and Packfile Plumbing

Index pack file

bash
bash
git index-pack pack-123.pack

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Transfer and Packfile Plumbing
Inspect pack contents
Examine packed object storage.
OpenIn sheetbashsame section
Create pack from stdin list
Create a pack from listed objects.
OpenIn sheetbashsame section
Unpack objects from stream
Inflate objects from a pack stream.
OpenIn sheetbashsame section
Write blob object
Store file content as a blob and print its object ID.
OpenIn sheetbash1 tag match
List tracked files
Print index entries.
OpenIn sheetbash1 tag match
List refs
List local refs and object IDs.
OpenIn sheetbash1 tag match