| Crates.io | commit_crafter |
| lib.rs | commit_crafter |
| version | 0.1.6 |
| created_at | 2024-05-09 14:20:46.706827+00 |
| updated_at | 2025-07-28 15:13:58.713843+00 |
| description | AI powered tool for Git commit message generator |
| homepage | https://github.com/yzzting/commit_crafter |
| repository | https://github.com/yzzting/commit_crafter |
| max_upload_size | |
| id | 1235153 |
| size | 76,687 |
cargo install --locked commit_crafter
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.
commit_crafter install
After executing the installation command, you must first set up a key in order to use it normally.
commit_crafter config set openai_api_key <your key>
// openai api key
commit_crafter config set openai_api_key <your key>
// openai url
commit_crafter config set openai_url <your url>
// openai model
commit_crafter config set openai_model <your model>
// prompt language
commit_crafter config set user_language <your language>
// get config options
commit_crafter config get <option>
// get all config options
commit_crafter config list
Language List:
| Language | Code |
|---|---|
| English | en |
| Japanese | jp |
| 简体中文 | zh |
| 繁体中文 | zh_tw |
The default file path is $HOME/.config/commit_crafter/config.toml
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
git add . // or git add <file>
git commit -a