Gem CommitGPT

Peter · February 27, 2023 · Last by kalelfc replied at February 28, 2023 · 1337 hits
Topic has been selected as the excellent topic by the admin.

A CLI that writes your git commit messages for you with AI. Never write a commit message again.

https://github.com/ZPVIP/commitgpt

欢迎 star, PR

太棒的想法了 👍

提个需求,比如这个生成的 message 不符合预期,我要编辑一下或者加 prompt 去掉前面部分,可以实现吗

Reply to hooopo

这个好像不容易。
最简单的方式就是选 n, 然后 copy paste.
程序方面,可能可以加个 e 选项,打开默认编辑器编辑 commit 信息,我有空试一下。

Reply to Peter

嗯 选 N,再 copy 也是可以的

另外一个就是最好留一个注入 prompt 的接口,比如在~/.aicm 里加自己的定制 prompt,“我想要每个 commit message 带一个 emoji”之类的

hooopo mark as excellent topic. 28 Feb 09:50

其实不太好用。给出的信息有一些啰嗦。这个在做代码重构的时候合适,能解释出每一处改了啥,什么目的。

Reply to huacnlee

适合小的 commit,有时候想 commit 很费事,aicm 一下很方便

You need to Sign in before reply, if you don't have an account, please Sign up first.