{"repo":"zurawiki/gptcommit","free":true,"listed":false,"github":"https://github.com/zurawiki/gptcommit","clone":"git clone https://github.com/zurawiki/gptcommit.git","description":"A git prepare-commit-msg hook for authoring commit messages with LLMs.","language":"Rust","stars":2418,"topics":["cli","git","githook","large-language-models","rust"],"license":"MIT","category":"cli-tools","readme_excerpt":"gptcommit A git prepare-commit-msg hook for authoring commit messages with an OpenAI language model. With this tool, you can easily generate clear, comprehensive and descriptive commit messages letting you focus on writing code. See announcement blog post. Demo Installation 1. Install this tool locally with cargo (recommended). or on macOS, use homebrew 2. In your git repository, run the following command to install gptcommit as a git prepare-commit-msg hook. You will need to provide an OpenAI API key to complete the installation. Usage To use gptcommit , simply run git commit as you normally would. The hook will automatically generate a commit message for you using a large language model like GPT. If you're not satisfied with the generated message, you can always edit it before committing. Note: By default, gptcommit uses the fastest and most cost-effective OpenAI model available. Please ensure you have sufficient credits in your OpenAI account to use it. Features gptcommit supports a number of configuration options that are read from $HOME/.config/gptcommit/config.toml . Configs are applied in the following order: - User settings as read from $HOME/.config/gptcommit/config.toml . - The settings as read from the repo clone at $GIT ROOT/.git/gptcommit.toml . - Environment variables starting with GPTCOMMIT . See all the config options available with gptcommit config keys . Set your OpenAI API key Persist your OpenAI key or set it just for you local repo: You can also config th","default_branch":null,"files":null,"tree":[],"storefront":"/r/zurawiki","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zurawiki/gptcommit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}