Git Product home page Git Product logo

aicommit's Introduction

Git 提交信息自动生成器

根据 git 仓库中检测到的更改,使用 GPT 自动生成合适的提交信息。

功能

根据 git diff 自动生成 5 条候选提交信息,用户从建议的提交信息列表中进行选择,选择后将提交信息添加到 git commit 中。 Demo:

使用方法

pip3 install git+https://github.com/ultrasev/aicommit

在 git 仓库中

  1. git add xxx 添加更改
  2. 执行 aicommit 命令生成 5 条候选提交信息
  3. 根据 id 选择一条最合适的提交信息,确定后自动执行 git commit -m "your message"

使用前需要配置 OpenAI API 密钥,将密钥放到 ~/.openai_api_key 文件中。示例

echo 'OPENAI_API_KEY=your-api-key' > ~/.openai_api_key

结合 llmproxy 项目也可以使用 Gemini 或者 Grok 的 API。

文档

TODO

  • 变更过多时,自动分批提交
  • 支持过滤文件类型,只对特定文件类型生成提交信息

aicommit's People

Contributors

ultrasev avatar

Stargazers

Water Wei avatar aoliaoduo avatar  avatar  avatar Pengji Du avatar SLIPPER avatar

Watchers

 avatar

Forkers

aceliuchanghong

aicommit's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.