Git Commit Message 自动生成工具
Project description
GCM
基于大模型的 Git Commit Message 自动生成工具,支持所有 OpenAI 协议兼容的大模型服务
安装
pip install git-gcm
配置
设置环境变量:
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 登录
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.2.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.2.tar.gz.
File metadata
- Download URL: git_gcm-1.0.2.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 |
a3d3ed9a776931d3bba7503dca70c08afc7f1a69365af6d1762d072481131b15
|
|
| MD5 |
263bb308bb6dc6038e081f0b8adbd208
|
|
| BLAKE2b-256 |
aae4f470e1d4aa5412345b4651e86d8f42f4a4b0da15fe01fa6d3e1ba6c08355
|
File details
Details for the file git_gcm-1.0.2-py3-none-any.whl.
File metadata
- Download URL: git_gcm-1.0.2-py3-none-any.whl
- Upload date:
- Size: 8.9 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 |
e17e0a24c7f1037ffc2457a774d84853c260a5acfa05d886ecac3c5c9d7cf125
|
|
| MD5 |
634bf41dadd6dc07135e4cf4248fd856
|
|
| BLAKE2b-256 |
1feeec412e8b9d481fc93dd9ed7823b4ed39167a0539777fd2efc9793168d03a
|