KuaqSon / flash-commit

Automatically generate commit messages using ChatGPT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flash-commit

Automatically generate commit messages using ChatGPT

Demo

demo-flash-commit-may-10.mp4

How to install

Requires: Python3.7 or later installed

  1. Download the latest version of release.
  2. Extract the latest version build
  3. Run the following command
python3 -m pip install <path to downloaded release>/flash_commit-<version>-py3-none-any.whl

For example:

python3 -m pip install ~/Downloads/flash_commit-0.0.1/flash_commit-0.0.1-py3-none-any.whl

Usage

  1. Setup the OpenAI API key Get help for OpenAI at: https://help.openai.com/en/

  2. Save the key by running the following command

flash_commit --openai-key sk-xxxx
  1. Whenever you want to commit please staged the files changes and then just run the simple command
flash_commit

Happy coding 😉

About

Automatically generate commit messages using ChatGPT

License:MIT License


Languages

Language:Python 100.0%