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.
- 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.
- Go version 1.21.1 or higher.
- An OpenAI API key.
- Ensure you have Go installed on your system (version 1.21).
- Clone the repository to your local machine.
- Navigate to the cloned directory and run
go build && go install
to compile the application.
- Linux
curl https://raw.githubusercontent.com/Jonath-z/commit-ai/master/install.sh | sh
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
If you would like to contribute to the project, please fork the repository and make a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.