# Install directly from GitHub
pip install git+https://github.com/GitNudge/gitnudge.git
# Install a specific version
pip install git+https://github.com/GitNudge/gitnudge.git@v0.1.0
git clone https://github.com/GitNudge/gitnudge.git
cd gitnudge
pip install -e .
export ANTHROPIC_API_KEY="your-api-key"
# Or use the config command
gitnudge config --set-key
# Analyze potential conflicts first
gitnudge analyze main
# Rebase with AI assistance
gitnudge rebase main
# Get AI help when conflicts occur
gitnudge resolve
gitnudge rebase <target>
Start an AI-assisted rebase onto target branch
gitnudge analyze <target>
Analyze potential conflicts before rebasing
gitnudge resolve [file]
Get AI help resolving conflicts
gitnudge continue
Continue rebase after resolving conflicts
gitnudge abort
Abort the current rebase operation
gitnudge config --show
Show or modify configuration
gitnudge rebase main --dry-run # Preview without changes
gitnudge rebase -i HEAD~5 # Interactive rebase
gitnudge resolve --auto # Auto-apply AI suggestions
gitnudge analyze --detailed main # Detailed AI analysis
GitNudge can be configured via environment variables or config file at ~/.config/gitnudge/config.toml
| Variable | Description |
|---|---|
ANTHROPIC_API_KEY |
Your Anthropic API key (required) |
GITNUDGE_MODEL |
Claude model to use (default: claude-sonnet-4-20250514) |
GITNUDGE_CONFIG |
Path to config file |
GITNUDGE_NO_COLOR |
Disable colored output |
# ~/.config/gitnudge/config.toml
[api]
model = "claude-sonnet-4-20250514"
[behavior]
auto_stage = true
show_previews = true
max_context_lines = 500
[ui]
color = true
verbosity = "normal"
Questions? Reach out at info@gitnudge.ai