**用AI写出更规范的Git提交信息**

_How to Write Better Git Commit Messages with AI_

> 本文介绍了如何利用AI(如ChatGPT、Claude等)基于git diff和变更意图,自动生成符合Conventional Commits规范的提交信息。通过预设提示词、一键复制diff快捷命令和commitlint校验,可将提交信息编写时间缩短至30秒,并永久避免因上下文切换导致的潦草提交说明。

**来源信息**
- **来源**:Hacker News:AI 热帖
- **分类**:tip
- **发布时间**:2026-06-15 17:01(北京时间)
- **原文**:[打开原文](https://theaileverageweekly.com/posts/how-to-write-better-git-commit-messages-with-ai.html)