Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 668 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 668 Bytes

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