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.
- Clone this repository
- Install
jq
andcurl
if you haven't already:
- For Ubuntu/Debian:
sudo apt-get install jq curl
- For macOS (using Homebrew):
brew install jq curl
- Set your OpenAI API key as an environment variable directly in your terminal:
export OPENAI_API_KEY=your_api_key_here