gptcommit

GitHub

1. Install cargo

$ curl https://sh.rustup.rs -sSf | sh
$ source "$HOME/.cargo/env"

2. Check your rustc version >= 1.67.0

$ rustc --version

3. Install OpenSSL

$ sudo apt-get install pkg-config libssl-dev 

4. Install gptcommit

$ cargo install --locked gptcommit

5. Change directory to your repository

$ cd path_to_your_repo

6. Get openAI key

Please follow the step in this tutorial.

7. Set your OpenAI API key

$ gptcommit config set openai.api_key sk-...

8. Run the following command to install gptcommit as a git prepare-commit-msg hook

$ gptcommit install