An AI-powered assistant for generating well-structured, conventional commit messages in Git.
OpenGit leverages the power of AI to analyze your staged changes and generate high-quality commit messages that follow best practices. It helps maintain consistent commit history and improves code documentation without the mental overhead of crafting the perfect commit message.
- 🔍 Analyzes git staged changes
- ✨ Generates conventional commit messages
- ✅ Interactive approval workflow
- 🧠 Powered by Gemini 2.0 Flash
- 🔄 Follows conventional commit format (
<type>[optional scope]: <description>)
git clone https://github.com/yourusername/opengit.gitcd opengitpip install -e.
- Stage your changes with git:
- Run OpenGit:
- OpenGit will analyze your changes and suggest a commit message
- The agent will automatically commit message when you accept commit message that agent generated through chat.
- Type "exit" to quit without committing
OpenGit:
- Retrieves information about staged files using Git
- Sends the diff and file list to an AI model (Gemini 2.0 Flash)
- The AI generates a structured, conventional commit message
- You review and approve the message or request changes
- Upon approval, the message is committed to your repository
Contributions are welcome! Please feel free to submit a Pull Request.