Skip to content

joerndyherrn/gpt-commit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.py

Getting Started

Install openai and clone gpt-commit.

pip3 install openai
git clone [email protected]:markuswt/gpt-commit.git

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>

Alternatively, you can set the OPENAI_API_KEY variable in gpt-commit.py. You can also set OPENAI_ORG_ID this way (optional).

About

Generate commit messages using GPT-3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%