Skip to main content

Generate commit messages using GPT-3.

Project description

gpt-commit

Generate commit messages using GPT-3. To use gpt-commit, simply invoke it whenever you'd use git commit. Git will prompt you to edit the generated commit message.

git add .
gpt-commit

Based on Markus' gpt-commit.

Installation

Minimum Python version required: 3.10.

pipx

This is the recommended installation method.

$ pipx install gpt-commit-cli

pip

$ pip install gpt-commit-cli

Getting Started

Set the environment variable OPENAI_API_KEY to your OpenAI API key, e.g. by adding the following line to your .bashrc.

export OPENAI_API_KEY=<YOUR API KEY>
export OPENAI_ORG_ID=<YOUR ORG ID> # optional

Develop

$ git clone https://github.com/tddschn/gpt-commit-cli.git
$ cd gpt-commit-cli
$ poetry install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpt-commit-cli-0.1.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

gpt_commit_cli-0.1.1-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page