https://github.com/programmarchy/git-gpt
Generate commit messages using OpenAI GPT-3
https://github.com/programmarchy/git-gpt
Last synced: about 2 months ago
JSON representation
Generate commit messages using OpenAI GPT-3
- Host: GitHub
- URL: https://github.com/programmarchy/git-gpt
- Owner: programmarchy
- License: mit
- Created: 2023-01-17T17:30:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-17T21:28:54.000Z (over 3 years ago)
- Last Synced: 2025-12-29T04:18:58.929Z (6 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
git-gpt
=======
Generate commit messages using OpenAI GPT-3.
https://user-images.githubusercontent.com/622192/213011125-e455978e-43a9-46d1-aa61-3385e078c516.mp4
Configuration
-------------
Generate your OpenAI secret API key and set it to an environment variable named ``OPENAI_API_KEY``.
For more information, read `Where do I find my Secret API Key? `_
Installation
------------
Install using pip:
::
pip install git-gpt
Usage
-----
To use it as a command-line script:
::
git-gpt commit
or:
::
python -m git_gpt commit
For more information, refer to help:
::
usage: git-gpt [-h] [--dry-run] command
Run git commands with the assistance of OpenAI GPT-3.
positional arguments:
command a git command e.g. commit
options:
-h, --help show this help message and exit
--dry-run prints the output of the command instead of running it