Discover and explore top open-source AI tools and projects—updated daily.
fAI-powered Git commit message refactoring
New!
Top 37.8% on SourcePulse
This AI-powered tool automatically rewrites Git commit messages into a clean, conventional format. It's ideal for developers aiming to enhance repository maintainability, prepare projects for open-sourcing, or tidy up commit histories before merging or publishing.
How It Works
The tool uses AI models (OpenAI or local Ollama) to analyze commit diffs and original messages, generating standardized conventional commit messages. It integrates via npx or global install, with optional Git hooks for automated post-commit improvements or pre-push reviews. Features include smart detection to skip well-formed commits and safety mechanisms like backup branches and dry-run previews.
Quick Start & Requirements
npx git-rewrite-commits or install globally via npm install -g git-rewrite-commits.OPENAI_API_KEY environment variable) or Ollama installed and running with a downloaded model (e.g., ollama pull llama3.2).npx git-rewrite-commits --install-hooks within a repository.QUICK_START.md file is mentioned for detailed setup.Highlighted Details
Maintenance & Community
The project welcomes contributions via pull requests and uses GitHub issues for bug reporting and support. Specific community channels (like Discord/Slack) or details on maintainers/sponsors are not detailed in the provided README.
Licensing & Compatibility
Licensed under the permissive MIT License, permitting broad compatibility, including commercial use and integration into closed-source projects.
Limitations & Caveats
Rewriting Git history is a destructive operation, inherently risky on shared branches or repositories referencing commit hashes without team coordination. Users must exercise caution, use separate branches, create backups, and coordinate force-pushes to avoid workflow disruption. It is best suited for personal projects or feature branches before wide sharing.
1 day ago
Inactive
brennercruvinel
di-sukharev
Nutlope