This project is a tool that uses the OpenAI GPT model to automatically generate commit messages for Git commits based on the changes made in the code. It is written in Rust and uses the Tokio runtime for asynchronous operations.
- Clone the repository.
sh build.sh
- Set the
OPENAI_API_KEY
environment variable to your OpenAI API key. - Run the program with the
generate
flag to generate a commit message.
cp ~/projects/auto_git_commit/output/git_gen /usr/local/bin/
gitgen -g