Commit Crafter
Installation
In the git project, install the prepare-commit-msg hook and set up the OpenAI API key to use it. If it is the first time installing and using it.
After executing the installation command, you must first set up a key in order to use it normally.
Options
Language List:
Language | Code |
---|---|
English | en |
Japanese | jp |
简体中文 | zh |
繁体中文 | zh_tw |
The default file path is $HOME/.config/commit_crafter/config.toml
Usage
After correctly installing the hook, execute "git commit -a" in the git project. In the temporary Vim editor interface that opens, there will be generated commit information. The prerequisite is that all files have been staged for commit.
# prerequisites
Configuration
To Do
- Add more options to customize the commit message
- Support more AI models
- Support more languages
- Add more tests
- Improve README.md