Skip to content

runska/commit-message-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Git Commit Message Generator

This script generates commit messages using the OpenAI GPT-3.5-turbo model based on the provided Git diff. It prompts the user to confirm the commit with the generated message.

Prerequisites

Setup

  1. Clone this repository
  2. Install jq and curl if you haven't already:
  • For Ubuntu/Debian:
sudo apt-get install jq curl
brew install jq curl
  1. Set your OpenAI API key as an environment variable directly in your terminal:
export OPENAI_API_KEY=your_api_key_here

About

Generate commit messages from diff with GPT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%