Show HN:Cmt 是一款 AI 驅動的 Git Commit 訊息生成器

Show HN:Cmt 是一款 AI 驅動的 Git Commit 訊息生成器

Hacker News·

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.

Image

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

Hacker News

相關文章

  1. Smart Commit:一個保留在 CLI 中的 AI 輔助 Git Commit 工作流程

    4 個月前

  2. Show HN:使用 gitz (Rust 與 AI) 自動化 Git 提交訊息

    4 個月前

  3. Show HN:Giz,一個140行、支援AI生成提交訊息且系統提示易於修改的Git工具

    8 個月前

  4. Show HN:用於追蹤 AI 程式碼與提示的 Git 擴充功能

    3 個月前

  5. Show HN:Gen Commit – AI 為您的 Git Commit 訊息生成內容

    8 個月前