Automate Git Commits with gitai

Writing commits can be tedious. Review the files you changed, think about what actually happened, come up with a message that makes sense; and do that every single time you commit. It adds up. I'm a big fan of Conventional Commits, and I wanted to build something that helps people keep using it without wasting time thinking about the perfect message every single time. So I built gitai. 🚀 gitai reads your staged git diff, calls your configured LLM, and gives you 3 commit message suggestions to pick from. That's it. You stage your changes, run gitai, and it gives you something like: feat(auth): add JWT refresh token rotation Some things worth knowing: - Supports Ollama, run it fully local, no API key needed - Also works with OpenAI, Anthropic, and Gemini - Two commit styles: Conventional Commits or free-form - Optional gitmoji support - Config lives in a simple TOML file (~/.gitai.toml) It's open source, it's on PyPI, and I use it every day. pip install gitai-cli GitHub: https://lnkd.in/gEk3AYPM PyPI: https://lnkd.in/gyibCB8H If you try it, let me know what you think. PRs and issues are very welcome. 🙌 #Python #OpenSource #DevTools #Git #CLI

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories