A CLI tool that helps you write better, faster, and more consistent commit messages with the power of AI! ✨
Writing great commit messages is hard. even-better-commits makes it easy! It suggests commit messages based on your changes while strictly following the Conventional Commits specification. This ensures compatibility with tools like semantic-release and helps teams maintain consistency in their commit history.
- Node.js v22 or higher
- GitHub CLI (optional; not needed for basic commits)
npm i -g even-better-commitseven-better-commits offers multiple commands for different use cases: creating commits, creating branches, and opening pull requests.
🚀 First-time Usage? No worries! even-better-commits will guide you through the initial configuration automatically. You can also run ebc-setup anytime to update your settings.
ebcThe GitHub CLI (gh) is required for this command.
This command creates a new branch based on a GitHub issue. The issue information is used to generate a descriptive branch name.
ebb
ebc-branchThe GitHub CLI (gh) is required for this command.
This command opens a pull request based on the commit messages in the current branch. It generates a title and a short overview of the changes, including a list of commits with brief descriptions.
ebp
ebc-preven-better-commits supports multiple AI-powered commit message generation providers:
If you have Ollama installed, you can use any available local model—no extra setup required! 🔥
To use SAP AI Core, set your credentials via the AICORE_SERVICE_KEY environment variable:
export AICORE_SERVICE_KEY='{
"url": "",
"clientid": "",
"clientsecret": "",
"serviceurls": { "AI_API_URL": "" }
}'This project is inspired by better-commits, a tool we love and use daily. Our goal? Keep it simple, but make it even better—so developers can focus on coding instead of writing commit messages. 💙
🎉 Happy committing! 🚀