OpenCommit is an open source developer tool that automatically generates meaningful Git commit messages using large language models. It analyzes the staged changes in a repository and produces a descriptive commit message in seconds, helping developers avoid vague messages such as “fix” or “update.” OpenCommit can be used as a command-line utility that replaces the traditional Git commit command, allowing developers to commit changes with a generated message instantly. It supports multiple AI providers, including popular language models as well as locally hosted models, giving teams flexibility in how the messages are generated. OpenCommit can also be integrated into continuous integration workflows so that commit messages are automatically improved when code is pushed to a repository. It includes options for customizing the format and style of generated messages, such as enabling conventional commit formats, emojis, or additional descriptions.
Features
- Automatically generates Git commit messages from staged code changes
- Works as a CLI tool that can replace the standard Git commit command
- Supports multiple AI providers and local language models
- Integrates with GitHub workflows to improve commit messages on push
- Supports configurable message styles such as conventional commits
- Allows customization with templates, emojis, and commit message rules