Reference
crab repack
Consolidate remote Git pack files.
Synopsis
crab repack [OPTIONS]Description
crab repack consolidates remote Git pack files. Over time, many pushes can
leave many small packs in the remote. Repacking merges those packs and
atomically updates the pack list; old packs are reclaimed later by crab gc.
For conceptual background, see Repacking Objects.
Options
| Option | Default | Description |
|---|---|---|
--dry-run | false | Show repack plan without executing |
--json | false | Emit structured JSON output |
Examples
crab repack --dry-run
crab repackRelated Commands
crab gc— remove unreachable objects first.crab optimize packs— grouped optimize namespace for pack consolidation.crab compact— compact metadata layers.