Reference
crab track
Register file patterns for Crab tracking.
Synopsis
crab track [OPTIONS] [<GLOB>]
crab untrack <GLOB>Description
crab track manages which files are processed by Crab's filter driver. When
you track a glob pattern, Crab adds a line to .gitattributes that routes
matching files through the clean/smudge filter and diff driver.
When invoked without arguments, lists all currently tracked patterns.
crab untrack removes a pattern from .gitattributes.
For conceptual background, see Tracking Files.
Arguments
| Argument | Required | Description |
|---|---|---|
glob | No | Glob pattern to track (e.g. *.bin, data/**). Omit to list. |
Options
| Option | Default | Description |
|---|---|---|
--list | false | List currently tracked patterns |
--json | false | Emit structured JSON output (list mode only) |
Examples
Track file types
crab track '*.safetensors'
crab track '*.bin'Track a directory
crab track 'data/models/**'List tracked patterns
crab trackUntrack a pattern
crab untrack '*.onnx'Related Commands
crab add— stage tracked files.crab init— initialize repository.crab status— see tracked file state.