Git Commit Message 自动生成工具
Project description
GCM
基于 AI 的 Git Commit Message 自动生成工具,支持所有 OpenAI 协议兼容的大模型服务。
安装
make build
配置
设置环境变量:
export GCM_API_KEY="your-api-key"
export GCM_API_URL="https://api.openai.com/v1"
export GCM_MODEL="gpt-4o-mini"
使用
git add .
gcm # 生成精简 commit message
gcm -v # 生成详细 commit message
示例
精简模式:
feat(auth): 添加用户登录功能
详细模式 (-v):
feat(auth): 添加用户登录功能
- 实现 JWT token 认证
- 添加登录表单验证
- 集成第三方 OAuth 登录
Git 集成
git commit -m "$(gcm)"
MIT License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
git_gcm-1.0.0.tar.gz
(7.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file git_gcm-1.0.0.tar.gz.
File metadata
- Download URL: git_gcm-1.0.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6cb7af30a3d5fc27447c86f7ef85849e496f4e32015c9b1776e81cd0d5974fa
|
|
| MD5 |
27d689a17728e9a3f5889f1bf102be6e
|
|
| BLAKE2b-256 |
7a1151d144355d04c08f85b12de4a4ea48377854fbd46db20b147409202c23b3
|
File details
Details for the file git_gcm-1.0.0-py3-none-any.whl.
File metadata
- Download URL: git_gcm-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51b7bf7bfdf27cf46c2db07cf09fb21eaa933a67ae7fab0718b6c210862a1adb
|
|
| MD5 |
3f43c17c8291c710beebc8313291c910
|
|
| BLAKE2b-256 |
8b6e0dfe4a2fe97bee7106122350d8a9690ea137c24e67631fe580f1b542838d
|