Skip to content

An AI-powered Git extension that generates commit messages using OpenAI's gpt-4-turbo-preview, streamlining the commit process and improving developer productivity.

Notifications You must be signed in to change notification settings

laststance/git-gpt-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Original package doesn't work due to config mistake 'package.json'. https://github.com/nooqta/git-commit-gpt
Tharefore I fix it and republish as a '@laststance/git-gpt-commit'.

Git Commit GPT-3

An AI-powered Git extension that generates commit messages using OpenAI's GPT-3, streamlining the commit process and improving developer productivity.

Git GPT-Commit Demo

Table of Contents

Installation

There are two ways to install the Git extension: using npm or manual installation.

Using npm

To install the Git extension as an npm package, run the following command:

$ npm install -g @laststance/git-gpt-commit

This command will install the Git extension globally on your system.

Get your openai API key from openai and add .env file to OPENAI_API_KEY at any local project root.

.env

OPENAI_API_KEY=our_openai_api_key

Usage

After setting up the project, you can use the Git extension in any Git repository:

Stage your changes:

git add .

Run the Git extension:

git gpt commit

The script will summarize the Git changes since the last commit and generate a commit message using GPT-3. You will be prompted to confirm whether to use the suggested message or cancel the commit.

License

This project is licensed under the MIT License.

About

An AI-powered Git extension that generates commit messages using OpenAI's gpt-4-turbo-preview, streamlining the commit process and improving developer productivity.

Topics

Resources

Stars

Watchers

Forks