Commands¶
Complete reference for all Gity commands.
Repository Commands¶
register¶
Register a repository for acceleration.
Arguments:
<path>— Path to the Git repository
Example:
unregister¶
Stop accelerating a repository and clean up.
Arguments:
<path>— Path to the registered repository
Example:
list¶
Show all registered repositories.
Options:
--stats— Include resource usage statistics (CPU, memory, cache size, job queue)
Example:
status¶
Get a fast status summary for a repository.
Returns clean/dirty state and changed paths using cached metadata.
Example:
health¶
Run diagnostic checks on a repository.
Output includes:
- Watcher status
- Generation token
- Dirty path count
- Scheduled jobs
- Resource throttling status
- Sled database integrity
Example:
changed¶
List files changed since a specific token.
Options:
--since <token>— Watcher token (defaults to last status token)
Example:
prefetch¶
Trigger background fetch and maintenance.
Options:
--now— Run immediately instead of waiting for the scheduler
Example:
maintain¶
Force maintenance tasks regardless of idle timers.
Runs commit-graph refresh, GC, and other maintenance.
Example:
logs¶
Stream daemon logs for a repository.
Options:
--follow— Tail live output--limit N— Number of entries (default: 50)
Example:
events¶
Stream file watcher events in real-time.
Subscribes to the daemon's PUB socket and shows notifications until interrupted.
Example:
Daemon Commands¶
daemon run¶
Start the daemon in the foreground. Press Ctrl+C to exit.
daemon health¶
Fetch a health summary from the running daemon (repo count, pending jobs, uptime, per-repo generations).
daemon queue-job¶
Manually enqueue a background job for a repo.
daemon start¶
Start the daemon as a background process.
Used by installers and gity tray. Most commands auto-start the daemon if needed.
daemon stop¶
Stop the running daemon gracefully.
daemon oneshot¶
Start daemon, service jobs for a repo, then exit.
Useful for CI/CD pipelines.
Example:
daemon metrics¶
Print current resource metrics.
Shows CPU, RSS, file descriptors, cache usage, and job queue depths.
Database Commands¶
Gity stores metadata, queues, and logs in a local sled database under $GITY_HOME/data/sled. The db subcommands operate on that store.
db stats¶
Show database statistics (file sizes and entry counts).
db compact¶
Compact database files to reclaim space.
db prune-logs¶
Prune old log entries from persistent storage.
--older-than <DAYS>— Remove entries older than this many days (default:7).
System Tray¶
tray¶
Launch the system tray UI.
The tray menu provides:
- Info — Window with repo status, watcher health, queue depths
- Exit — Equivalent to
gity daemon stop
If the daemon isn't running, gity tray starts it automatically.
Internal Commands¶
fsmonitor-helper¶
Git fsmonitor protocol implementation.
Note
This command is invoked by Git, not directly by users. It implements the fsmonitor protocol to report changed files.
Arguments / options:
<version>— Protocol version (1or2, default2)<token>— Opaque token from previous response--repo <path>— Override the repo path (useful when invoked outside the working tree)
Command Behavior¶
- Auto-start daemon — CLI commands automatically start the daemon if not running
- IPC communication — Commands communicate with the daemon via async-nng sockets
- Streaming output — Commands like
eventsandlogs --followstream until interrupted