Syntax
Basic usage
Scan a directory for git repositories:*(red) — repository has uncommitted changes[local](yellow) — repository has no remotes configured[↑n](blue) — repository has n unpushed commits (when using-uflag)
Quick reference
| Flag | Short | Default | Description |
|---|---|---|---|
<path> | — | (required) | Directory to scan for repositories |
--depth | -L | 3 | Max directory depth to search |
--dirty | -d | off | Only show repos with uncommitted changes |
--local | -l | off | Only show repos with no remotes |
--include-unpushed | -u | off | Include unpushed commit info (slower) |
--raw | -r | off | Raw output for piping (one path per line) |
Exit codes
Dirty uses standard Unix exit codes:- 0 (success) — Found repositories matching the specified criteria
- 1 (failure) — No git repositories found, no matching repositories, or error accessing the path
- Path does not exist or cannot be accessed
- No git repositories found in the scanned directories
- No repositories match the filter criteria (when using
-dor-lflags)