https://github.com/yzzting/commit_crafter
一个由大模型驱动的Git提交消息生成器。它旨在通过自动生成基于您的更改而有意义的提交消息,帮助您节省时间。非常适合独立项目或团队协作,可以使您的提交日志整洁易读 Commit Crafter
Installation
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_keyOptions
commit_crafter config set openai_api_key
commit_crafter config set openai_url
commit_crafter config set openai_model
commit_crafter config set user_language
commit_crafter config get
commit_crafter config list
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.
git add . // or git add
git commit -a
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有