1.0.2 • Published 4 months ago

gpt-auto-commit v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

✌️ GPT Auto Commit

GPT Auto Commit Screenshot

A cute little CLI tool that uses OpenAI's GPT-4 to ✨automatically✨ generate commit messages.

✨ Features

  • One command, instant commit messages
  • Edit a message in interactive mode
  • Only checks staged changes
  • Follows Conventional Commits to make you look good
  • Clean, colorful CLI for smooth workflow
  • Progress bars so you're never left hanging

📦 Installation

npm install -g gpt-auto-commit

🔑 API Key & Pricing

This tool requires an OpenAI API key to function. Here's what you need to know:

Also just a heads up that this does cost money:

🛠️ Setup

Before using the tool, you gotta configure your OpenAI API key:

gpt-auto-commit config --key YOUR_OPENAI_API_KEY
# or use the shorthand
gpc config --key YOUR_OPENAI_API_KEY

🚀 Usage

Quick Commit (Recommended)

Run gpc in your git repository to automatically generate and commit your changes:

gpc

This will:

  1. Analyze your staged changes
  2. Generate a commit message
  3. Automatically commit with the generated message

Interactive Mode

If you want to review or edit the commit message before committing:

gpc generate

This will:

  1. Generate a commit message
  2. Give you options to:
    • Press c to commit as is
    • Press e to edit the message
    • Press q to quit without committing

📝 Commands

All commands can be used with either gpt-auto-commit or the shorthand gpc:

  • gpc - Quick generate and commit (default)
  • gpc generate - Interactive mode with edit options
  • gpc config --key <key> - Set your OpenAI API key
  • gpc --help - Show help information
1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago