AI Commit is a command-line tool that generates intelligent git commit messages using local Ollama AI models. It analyzes your staged changes and creates meaningful commit messages following best practices.
Himanshu Kumar
- GitHub: @himanshu231204
- LinkedIn: himanshu231204
- Twitter/X: @himanshu231204
- Email: himanshu231204@gmail.com
- ⭐ Star the repository
- ☕ Buy me a coffee
- 💝 Sponsor on GitHub
- Repository: https://github.com/himanshu231204/ai-commit
- Issues: https://github.com/himanshu231204/ai-commit/issues
- Discussions: https://github.com/himanshu231204/ai-commit/discussions
- Wiki: https://github.com/himanshu231204/ai-commit/wiki
git clone https://github.com/himanshu231204/ai-commit.git
cd ai-commit
bash install.shgit clone https://github.com/himanshu231204/ai-commit.git
cd ai-commit
pip install -e .# Stage your changes
git add .
# Generate commit message
ai-commit- 🤖 AI-powered commit message generation
- 🔒 100% local and private
- 💰 Free (uses local Ollama)
- ⚡ Fast generation
- 🎨 Multiple commit styles
- 🌐 Works offline
- Language: Python 3.8+
- Dependencies: requests
- AI Backend: Ollama
- License: MIT
ai-commit/
├── ai_commit.py # Main application
├── setup.py # Package configuration
├── requirements.txt # Dependencies
├── install.sh # Installation script
├── README.md # User documentation
├── CONTRIBUTING.md # Contribution guidelines
├── LICENSE # MIT License
├── .gitignore # Git ignore rules
└── .github/
└── workflows/
└── ci.yml # GitHub Actions CI
- Analyze: Reads git diff of staged changes
- Generate: Sends diff to local Ollama model
- Present: Shows generated commit message
- Interactive: User can accept, regenerate, edit, or cancel
- Commit: Creates git commit with chosen message
- llama2 (recommended)
- codellama (code-optimized)
- mistral (fast)
- phi (lightweight)
- llama3 (most powerful)
- Any Ollama model
feat(auth): add user login functionality
fix(api): resolve timeout issue
docs(readme): update installation steps
Add user login functionality
Fix timeout issue in API
Update installation steps in README
Add user authentication system
- Implement JWT-based authentication
- Add login and logout endpoints
- Create user session management
git clone https://github.com/himanshu231204/ai-commit.git
cd ai-commit
pip install -e .# Coming soon
pytest tests/- Follow PEP 8
- Use type hints
- Add docstrings
- Write clean, readable code
We welcome contributions! See CONTRIBUTING.md for guidelines.
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
- Basic commit message generation
- Multiple commit styles
- Interactive CLI
- Configuration file support
- Custom prompt templates
- Git hooks integration
- VSCode extension
- Multiple language support
- Batch commit support
- Commit history analysis
MIT License - see LICENSE file for details.
- Ollama - For local LLM runtime
- Git - Version control system
- Python - Programming language
- Community - Contributors and users
- Bug Reports: GitHub Issues
- Feature Requests: GitHub Discussions
- Email: himanshu231204@gmail.com
Made with ❤️ by Himanshu Kumar
If you find this project useful, please consider giving it a ⭐ on GitHub!