{"repo":"di-sukharev/opencommit","free":true,"listed":false,"github":"https://github.com/di-sukharev/opencommit","clone":"git clone https://github.com/di-sukharev/opencommit.git","description":"top #1 and most feature rich GPT wrapper for git — generate commit messages with an LLM in 1 sec — works with Claude, GPT and every other provider, supports local Ollama models too","language":"JavaScript","stars":7519,"topics":["ai","ai-commit","artificial-intelligence","chatgpt","git","gpt","productivity","ai-commits"],"license":"MIT","category":"productivity","readme_excerpt":"OpenCommit Author Auto-generate meaningful commits in a second Killing lame commits with AI 🤯🔫 🪩 Winner of GitHub 2023 hackathon 🪩 --- All the commits in this repo are authored by OpenCommit — look at the commits to see how OpenCommit works. Emojis and long commit descriptions are configurable, basically everything is. Setup OpenCommit as a CLI tool You can use OpenCommit by simply running it via the CLI like this oco . 2 seconds and your staged changes are committed with a meaningful message. 1. Install OpenCommit globally to use in any repository: 2. Get your API key from OpenAI or other supported LLM providers (we support them all). Make sure that you add your OpenAI payment details to your account, so the API works. 3. Set the key to OpenCommit config: Your API key is stored locally in the /.opencommit config file. Usage You can call OpenCommit with oco command to generate a commit message for your staged changes: Running git add is optional, oco will do it for you. Running locally with Ollama You can also run it with local model through ollama: - install and start ollama - run ollama run mistral (do this only once, to pull model) - run (in your project directory): Default model is mistral . If you have ollama that is set up in docker/ on another machine with GPUs (not locally), you can change the default endpoint url. You can do so by setting the OCO API URL environment variable as follows: where 192.168.1.10 is example of endpoint URL, where you have ollama set up. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/di-sukharev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/di-sukharev/opencommit/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."}