Features & Advanced Usage
GitWise transforms your Git workflow with AI-powered automation while keeping you in control.
๐ค Core Features
๐ฏ AI-Powered Commit Messages
Transform your staged changes into perfect Conventional Commits:
# Before
git commit -m "fix stuff"
# After
gitwise commit
# Output: "fix: resolve authentication timeout in user login flow"
Features:
- Analyzes your actual code changes
- Generates Conventional Commit format
- Includes detailed descriptions
- Respects your coding context
๐ Intelligent PR Descriptions
Create comprehensive PRs with zero manual writing:
gitwise pr --labels --checklist
Automatically generates:
- Detailed description from commit history
- Relevant labels based on changes
- Context-specific checklists
- Proper PR title formatting
โก Interactive Complete Workflow
One command does everything with AI assistance:
# Traditional workflow (slow)
git add .
git commit -m "vague message"
git push
# Manually create PR... 10+ minutes
# GitWise interactive workflow (15 seconds)
gitwise add .
# ๐ Shows changes โ AI commit โ Push โ Create PR
# Complete workflow with AI assistance at each step
๐ง Smart Auto-Grouping
Automatically groups related changes into logical commits:
gitwise commit --group
# AI analyzes changes and creates separate commits for:
# - "feat: add user authentication"
# - "docs: update API documentation"
# - "test: add auth unit tests"
๐ Intelligent Merge Resolution
AI-powered conflict analysis and resolution:
gitwise merge feature-branch
# ๐ค Analyzes conflicts with context
# ๐ง Suggests resolutions
# ๐ Explains merge strategy
# โก Guides you through resolution
๐ฏ Branch Context Management
Help AI understand your work:
# Set context for better suggestions
gitwise set-context "Implementing OAuth2 authentication system"
# View current context
gitwise get-context
๐ค AI Backend Options
๐ฆ Ollama (Local) - Recommended
Perfect for privacy-focused developers
# One-time setup
curl -fsSL https://ollama.com/install.sh | sh
ollama pull llama3
gitwise init # Select Ollama
Benefits:
- ๐ Complete Privacy - Code never leaves your machine
- ๐ฐ Zero Cost - No API fees
- ๐ Fast - Local processing
- ๐ Flexible - Switch models easily
Available Models:
llama3- Best overall qualitycodellama- Optimized for codemistral- Fast and efficient
๐ Online (GPT-4/Claude) - Latest AI
For cutting-edge AI capabilities
gitwise init # Select Online, enter API key
Benefits:
- ๐ฏ Highest Quality - Latest AI models
- โก Instant - No local processing
- ๐ Always Updated - Latest model versions
Supported Providers:
- OpenAI (GPT-4, GPT-3.5)
- Anthropic (Claude 3)
- Google (Gemini Pro)
- OpenRouter (Access to multiple models)
๐ฅ Advanced Features
๐ Auto-Confirm Mode
Speed up your workflow with automatic confirmations:
# Skip all prompts
gitwise add . --yes
gitwise commit --yes
gitwise push --yes
gitwise pr --yes --labels --checklist
๐ท๏ธ Smart PR Labels
Automatically add relevant labels based on your changes:
gitwise pr --labels
Auto-detects:
bug- Bug fixesfeature- New featuresdocs- Documentation changesrefactor- Code refactoringtest- Test additions
โ Context-Aware Checklists
Generate checklists based on your file types:
gitwise pr --checklist
Examples:
- Frontend changes: Browser testing, accessibility
- Backend changes: API documentation, security review
- Database changes: Migration testing, backup verification
๐ Changelog Management
Keep your changelog up-to-date automatically:
# Generate changelog for current version
gitwise changelog
# Update for specific version
gitwise changelog --version 1.2.0
๐ฎ Git Command Passthrough
Use GitWise as a drop-in Git replacement:
# All standard Git commands work
gitwise status
gitwise log --oneline
gitwise branch -a
gitwise diff HEAD~1
โ๏ธ Advanced Configuration
Switching AI Backends
Change backends anytime:
gitwise init # Reconfigure backend
Custom Model Selection
For Ollama users:
# List available models
ollama list
# Pull new models
ollama pull codellama
ollama pull mistral
# GitWise will detect and offer them
Configuration Files
GitWise stores config in:
- Local:
.gitwise/config.json(per repository) - Global:
~/.gitwise/config.json(all repositories)
๐ฏ Best Practices
For Teams
- Use consistent AI backend across team
- Set up branch context templates
- Standardize on Conventional Commits
For Privacy
- Use Ollama for sensitive projects
- Keep API keys secure
- Review generated content before committing
For Performance
- Use auto-confirm mode for repetitive tasks
- Set branch context early
- Cache Ollama models locally
๐ง Troubleshooting
Common Issues
Ollama not responding:
ollama serve # Start Ollama server
ollama list # Check available models
API key issues:
gitwise init # Reconfigure API keys
Performance slow:
# For Ollama: ensure model is pulled locally
ollama pull llama3
# For Online: check internet connection
๐ Whatโs Next?
GitWise is actively developed with new features added regularly:
- Smart merge conflict resolution - AI-powered merge assistance
- Code review suggestions - Automated code quality checks
- Team collaboration - Shared contexts and templates
- IDE integrations - VS Code, IntelliJ plugins
Stay updated at github.com/PayasPandey11/gitwise