Git Internals and Plumbing/Create pack from stdin list

Create a pack from listed objects.

Section: Transfer and Packfile Plumbing

Create pack from stdin list

bash
bash
printf "%s\n" <object_sha> | git pack-objects out/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
Index pack file
Create index for an existing pack.
OpenIn sheetbashsame section
Inspect pack contents
Examine packed object storage.
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