Quick Start Guide
Get GitWise running in 2 minutes and transform your Git workflow immediately.
π¦ Installation
Option 1: Quick Install (Fastest)
pip install pygitwise
gitwise init
Option 2: Local AI (Recommended for Privacy)
# Install Ollama for local AI
curl -fsSL https://ollama.com/install.sh | sh
ollama pull llama3
# Install GitWise
pip install pygitwise
gitwise init # Select Ollama when prompted
Option 3: Virtual Environment (Best Practice)
python3 -m venv gitwise-env
source gitwise-env/bin/activate
pip install pygitwise
gitwise init
π First Workflow
After installation, try GitWise on any Git repository:
# Navigate to your project
cd your-project
# Make some changes
echo "console.log('Hello GitWise!');" > test.js
# Use GitWise interactive workflow
gitwise add . # π Interactive: Shows changes β Commits β Pushes β Creates PR
# OR step by step:
gitwise commit # π€ AI generates: "feat: add hello world console output"
gitwise commit --group # π§ Auto-groups related changes into separate commits
gitwise merge # π Smart merge with AI conflict resolution
gitwise pr # π Create PR with AI description
Thatβs it! You now have perfect commits and PRs.
π€ Choose Your AI Backend
During gitwise init, youβll choose an AI backend:
π¦ Ollama (Local) - Recommended
- Privacy: π’ Complete - Code never leaves your machine
- Speed: π’ Fast after initial setup
- Quality: π’ High
- Cost: π’ Free
Setup:
curl -fsSL https://ollama.com/install.sh | sh
ollama pull llama3
gitwise init # Select Ollama
π Online (GPT-4/Claude) - Latest AI
- Privacy: π‘ API calls to providers
- Speed: π’ Instant
- Quality: π’ Highest
- Cost: π° Pay per use
Setup:
gitwise init # Select Online, enter API key
β‘ Essential Commands
Once setup is complete, these are your main commands:
| Command | What It Does |
|---|---|
gitwise add . |
π Interactive workflow: stage β commit β push β PR |
gitwise commit |
π€ Generate perfect Conventional Commits |
gitwise commit --group |
π§ Auto-group related changes into separate commits |
gitwise merge |
π Smart merge with AI conflict analysis |
gitwise push |
Push with optional PR creation |
gitwise pr |
π Create detailed PRs with labels & checklists |
gitwise init |
Change AI backend or reconfigure |
π― Pro Tips
Speed Up Your Workflow
# Auto-confirm mode for faster workflow
gitwise add . --yes
gitwise commit --yes
gitwise push --yes
Better PR Creation
# Create PR with labels and checklist automatically
gitwise pr --labels --checklist
# Create draft PR for review
gitwise pr --draft
Context for Better AI
# Set context for better commit messages
gitwise set-context "Working on user authentication system"
π§ Troubleshooting
Command Not Found
If gitwise command is not found, add to your PATH:
macOS/Linux:
export PATH="$PATH:~/.local/bin"
# Add to ~/.bashrc or ~/.zshrc
Or use virtual environment (recommended):
python3 -m venv gitwise-env
source gitwise-env/bin/activate
pip install pygitwise
Ollama Issues
# Check if Ollama is running
ollama list
# Start Ollama if needed
ollama serve
# Pull models if missing
ollama pull llama3
π Youβre Ready!
Your Git workflow is now supercharged. Every commit will be meaningful, every PR will be detailed, and everything happens in seconds instead of minutes.
Next Steps: