Reference
crab reset
Unstage files from the Crab staging area.
Synopsis
crab reset [OPTIONS] [PATTERNS]...Description
crab reset removes files from the Crab staging area, undoing the effect of
crab add. It removes the staged chunk data and restores the original file
content (or pointer blob) in the working tree.
For conceptual background, see Resetting Staged Files.
Arguments
| Argument | Required | Description |
|---|---|---|
PATTERNS | No | Glob patterns to unstage. If omitted, unstages all. |
Options
| Option | Default | Description |
|---|---|---|
--all | false | Reset all staged files |
--json | false | Emit structured JSON output |
Examples
Reset specific files
crab reset '*.bin'Reset everything
crab reset --allRelated Commands
crab add— stage files.crab staging— inspect staging area.crab status— check file state.