用 gpt 3.5 API 扩展了 git 根据文件的 diff 自动生成 commit log

2023-03-04 16:32:04 +08:00
 bugu1986

https://github.com/buhe/git-gpt

1159 次点击
所在节点    程序员
3 条回复
bugu1986
2023-03-04 16:46:08 +08:00
```
export OPEAN_AI=YOUR_TOKEN
# Token is here https://platform.openai.com/account/api-keys
git gpt
git push
```
bugu1986
2023-03-04 16:58:11 +08:00
我比较懒,不爱手写 commit log 所以
learningman
2023-03-04 18:05:26 +08:00
试过了,只看 diff chatgpt 理解不了你在干啥,最后出来的东西基本都是 update xxx and edit xxx 这样的。
而且让他遵循 conventional commit 或者 semantic commit 也理解不了,最后还是得自己手写

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/921116

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX