Show HN:Cmt 是一款 AI 驅動的 Git Commit 訊息生成器
Hacker News 介紹了 'cmt',這是一款 AI 驅動的命令列工具,能分析 Git 的暫存變更,自動生成描述性且符合規範格式的 Commit 訊息。
Navigation Menu
Search code, repositories, users, issues, pull requests...
Provide feedback
We read every piece of feedback, and take your input very seriously.
Saved searches
Use saved searches to filter your results more quickly
To see all available qualifiers, see our documentation.
cmt - AI-Powered Git Commit Message Generator
License
Uh oh!
There was an error while loading. Please reload this page.
clifton/cmt
Folders and files
Latest commit
History
Repository files navigation
cmt - AI-Powered Git Commit Message Generator
cmt is a command-line tool that generates meaningful git commit messages using AI models. It analyzes your staged changes and generates a well-formatted, descriptive commit message following conventional commit standards.

Features
Installation
Using Install Script (Recommended)
From crates.io
From source
Configuration
Set your API key as an environment variable:
Or create a .env file in your project directory.
Usage
Basic Usage
Providers
Command-line Options
Examples
How It Works
Example output:
Commit Message Format
Types: feat, fix, docs, style, refactor, test, chore, perf, build, ci
Template Management
Templates are stored in ~/.config/cmt/templates/ as .hbs files.
Available variables: {{type}}, {{subject}}, {{details}}, {{scope}}, {{breaking}}, {{issues}}
Shell Aliases
Add to your ~/.zshrc or ~/.bashrc:
License
MIT License - see LICENSE file for details.
About
cmt - AI-Powered Git Commit Message Generator
Resources
License
Uh oh!
There was an error while loading. Please reload this page.
Stars
Watchers
Forks
Releases
34
Packages
0
Uh oh!
There was an error while loading. Please reload this page.
Contributors
2
Uh oh!
There was an error while loading. Please reload this page.
Languages
Footer
Footer navigation
相關文章