# gptcommit [GitHub](https://github.com/zurawiki/gptcommit) ## 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](https://www.educative.io/courses/open-ai-api-natural-language-processing-python/7DxorX8xA0O). ## 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 ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up