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.
Arguments:
now— Jump to front of job queue
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.
Options:
--config PATH— Path to configuration file
Press Ctrl+C to exit.
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.
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:
<version>— Protocol version (must be2)<token>— Opaque token from previous response
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