Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 1.39 KB

README.md

File metadata and controls

48 lines (29 loc) · 1.39 KB

Commit-AI

Commit-AI is a CLI tool designed to automate the generation of meaningful commit messages for your Git repositories. Leveraging the power of OpenAI's models, it analyzes your git diffs and crafts commit messages that are concise, descriptive, and follow best practices.

Demo

Features

  • Automated Commit Messages: Generate commit messages based on the changes in your git repository.
  • Customizable Prefixes: Supports prefixes for different types of commits (feat, fix, refactor, chore).
  • Easy Integration: Simple setup and usage within any Git repository.

Requirements

  • Go version 1.21.1 or higher.
  • An OpenAI API key.

Installation

With Go

  1. Ensure you have Go installed on your system (version 1.21).
  2. Clone the repository to your local machine.
  3. Navigate to the cloned directory and run go build && go install to compile the application.

Using the binary

  • Linux
  curl https://raw.githubusercontent.com/Jonath-z/commit-ai/master/install.sh | sh

Usage

To use Commit-AI, you need to provide your OpenAI API key using the --apiKey flag. Run the following command in your terminal:

commit-ai --apiKey YOUR_API_KEY

Contributing

If you would like to contribute to the project, please fork the repository and make a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.