Observed since 21 Oct, 10:49 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
AI-powered git commit message generator
AI-powered git commit message generator - Zero configuration, instant intelligent commits
Generate meaningful git commit messages instantly using AI. No API keys required - works right out of the box with free HuggingFace models.
pip install ai-git-commit-gen
That's it! No configuration needed.
git add .
gcai generate
# Generate commit message suggestions
gcai generate
gcai g # Short alias
# Auto-commit with first suggestion
gcai generate --auto
# Generate more suggestions
gcai generate --num 5
# Use different commit styles
gcai generate --style conventional # Default
gcai generate --style gitmoji # With emojis 🎨
gcai generate --style simple # Simple format
# Dry run - see what would be committed
gcai generate --dry-run
# Check if ready to generate
gcai check
When you run gcai generate, you'll see:
🔍 Analyzing staged changes...
📁 Files changed:
📝 src/auth/jwt.py (modified)
✨ src/auth/refresh.py (added)
📝 tests/test_auth.py (modified)
✨ Suggested commit messages:
[1] feat(auth): implement JWT refresh token rotation
[2] fix(auth): add automatic token refresh mechanism
[3] feat(auth): add refresh token support with rotation
Select [1-3], [r]egenerate, [e]dit, or [q]uit:
Choose an option:
feat(auth): add JWT refresh token rotation
fix(api): handle null response in user endpoint
docs(readme): update installation instructions
✨ feat(auth): add JWT refresh token rotation
🐛 fix(api): handle null response in user endpoint
📝 docs(readme): update installation instructions
Add JWT refresh token rotation
Fix null response handling in user endpoint
Update readme installation instructions
git-commit-ai intelligently caches suggestions for identical changes, making repeated operations instant.
Large diffs are automatically truncated while preserving the most important context.
# Clone the repository
git clone https://github.com/yourusername/git-commit-ai.git
cd git-commit-ai
# Install in development mode
pip install -e .
# Install development dependencies
pip install pytest pytest-asyncio pytest-cov
# Run all tests
pytest
# Run with coverage
pytest --cov=git_commit_ai --cov-report=html
# Run specific test file
pytest tests/test_cli.py
# Format code
ruff format src tests
# Lint
ruff check src tests
# Type checking (optional, if using mypy)
mypy src
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
git checkout -b feature/AmazingFeature)git push origin feature/AmazingFeature)This project is licensed under the MIT License - see the LICENSE file for details.
Make sure you're in a git repository. Initialize one with:
git init
Stage your changes first:
git add .
The free HuggingFace API may be under load. The tool will automatically retry with exponential backoff.
Check your internet connection. The tool will fallback to basic commit messages if the API is unreachable.
Made with ❤️ by developers, for developers
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.2 | 27 Dec 2025 | 5 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 21 Oct, 10:49 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:01050d667f0f396757ebd60980ba2e7a608c4fe61cb278c064a67f89ae4101ad