Overview
Proxy for git commands with token-optimized output. Supports all git flags and subcommands with specialized filtering for common operations.Syntax
Global Options
All git global options are supported and passed through correctly:Run as if git was started in
<path> (can be repeated)Override git config for this command
Set path to
.git directorySet path to working tree
Disable pager output
Skip optional locks
Treat repository as bare
Optimized Subcommands
rtk git status
Compact status with grouped changes.rtk git log
One-line commit history with auto-truncation.--pretty=format:%h %s (%ar) <%an>(if not specified)-10(if no limit specified)--no-merges(unless--mergesrequested)
rtk git diff
Stat summary + compacted diff.--stat- Show only stat (no diff)--no-compact- Disable RTK compacting
rtk git show
Commit summary + stat + compacted diff.git show rev:path- Shows blob content (no diff formatting)--stat- Shows only stat--pretty=...- Custom format (no RTK filtering)
rtk git add/commit/push/pull
Ultra-compact confirmations.rtk git branch
Compact branch list with remote-only section.rtk git fetch/stash/worktree
Passthrough Support
Any git subcommand not listed above is passed through unchanged:Token Savings Summary
| Command | Savings |
|---|---|
status | 70% |
log | 60% |
diff | 80% |
show | 80% |
add/commit/push/pull | 59% |
branch | 65% |
fetch/stash/worktree | 60-70% |
Exit Codes
All git exit codes are preserved:0- Success1- Generic error128+N- Fatal error
Related Commands
rtk gh- GitHub CLI operationsrtk diff- Universal diff commandrtk log- Log file filtering
