{"id":15169635,"url":"https://github.com/dwisiswant0/prepare-commit-msg-ai","last_synced_at":"2026-02-07T04:01:58.129Z","repository":{"id":221979558,"uuid":"755864813","full_name":"dwisiswant0/prepare-commit-msg-ai","owner":"dwisiswant0","description":"Prepare Git Commit Message with AI: Write commit message based on code changes with AI.","archived":false,"fork":false,"pushed_at":"2024-02-14T13:31:49.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T10:44:12.678Z","etag":null,"topics":["chatgpt","cli","go","go-app","golang","llama","llama2","ollama","openai","text-generation","text-generator"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dwisiswant0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-11T10:14:40.000Z","updated_at":"2024-02-12T19:14:51.000Z","dependencies_parsed_at":"2024-06-21T14:23:17.904Z","dependency_job_id":null,"html_url":"https://github.com/dwisiswant0/prepare-commit-msg-ai","commit_stats":null,"previous_names":["dwisiswant0/prepare-commit-msg-ai"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwisiswant0%2Fprepare-commit-msg-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwisiswant0%2Fprepare-commit-msg-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwisiswant0%2Fprepare-commit-msg-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwisiswant0%2Fprepare-commit-msg-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwisiswant0","download_url":"https://codeload.github.com/dwisiswant0/prepare-commit-msg-ai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247819948,"owners_count":21001394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","cli","go","go-app","golang","llama","llama2","ollama","openai","text-generation","text-generator"],"created_at":"2024-09-27T07:04:13.760Z","updated_at":"2026-02-07T04:01:58.111Z","avatar_url":"https://github.com/dwisiswant0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prepare Git Commit Message with AI\n\n`prepare-commit-msg-ai` helps you to write commit message based on code changes with AI.\n\n* [Prerequisites](#prerequisites)\n* [Installation](#installation)\n  * [Usage](#usage)\n* [Getting Started](#getting-started)\n  * [Install](#install)\n  * [Uninstall](#uninstall)\n  * [Edit](#edit)\n* [License](#license)\n\n---\n\n## Prerequisites\n\n* `go`\n* `git`\n* [`mods`](https://github.com/charmbracelet/mods)\n\n## Installation\n\n```\ngo install github.com/dwisiswant0/prepare-commit-msg-ai@latest\n```\n\n### Usage\n\n```console\n$ prepare-commit-msg-ai -h\n\n  Prepare Git Commit Message with AI v0.0.1\n  --\n  made with ♥ by @dwisiswant0\n\nUsage:\n  prepare-commit-msg-ai [COMMAND]\n\nCommands:\n  install           Install hook in current Git project (alias: isntall, i)\n  uninstall         Uninstall generated hook file (alias: unisntall, u)\n  edit              Edit hook file (alias: ed, e)\n\nExamples:\n  prepare-commit-msg-ai install\n```\n\n## Getting Started\n\nExplore the basic functionalities of the tool with the following actions:\n\n### Install\n\nTo set up this hook, you must individually install it in each Git project, and the installation should take place within the respective project directory. \u003csup\u003eAin't no way to install this globally unless you make an alias for `git commit`.\u003c/sup\u003e\n\n```bash\nprepare-commit-msg-ai install\n```\n\n\u003e [!TIP]\n\u003e Alias for install: **isntall**, **i**.\n\n\u003e [!IMPORTANT]\n\u003e Don't forget to set up `mods` with [`--settings`](https://github.com/charmbracelet/mods#settings).\n\n#### How it works?\n\n```console\n$ cd your-git-project/\n$ # make changes\n$ git add .\n$ git commit\n$ # generating commit message for ya,\n$ # and it'll pop your `EDITOR` to confirm the commit message.\n$ # satifying? save it and leave it.\n```\n\n### Uninstall\n\nTo remove the `prepare-commit-msg` hook in your current Git project:\n\n```bash\nprepare-commit-msg-ai uninstall\n```\n\n\u003e [!TIP]\n\u003e Alias for uninstall: **unisntall**, **u**.\n\n### Edit\n\nWant to change model or prompt?\n\n```bash\nprepare-commit-msg-ai edit\n```\n\n\u003e [!TIP]\n\u003e Alias for edit: **ed**, **e**.\n\n\u003e [!NOTE]\n\u003e Currently, the hook works correctly when tested with OpenAI's models, using default settings from `mods`. To clarify, I have NOT tested its compatibility with `GPT4All-J *` models or models from Azure OpenAI at this time.\u003cbr\u003e\n\u003e \u003csup\u003eI mean, I gave the `llama2`, `codellama`, `openchat`, etc. models a shot with different prompts on Ollama, but goddamn the output keeps throwing off the system prompt and always goes off-script, making it a pain for me to create an extractor.\u003c/sup\u003e\n\n## License\n\nContributions are welcome! Comments? Feedbacks? Thoughts? Just [open an issue](https://github.com/dwisiswant0/prepare-commit-msg-ai/issues/new).\n\n`prepare-commit-msg-ai` is made with ♥ by [**@dwisiswant0**](https://github.com/dwisiswant0) under the MIT license. See [LICENSE](/LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwisiswant0%2Fprepare-commit-msg-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwisiswant0%2Fprepare-commit-msg-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwisiswant0%2Fprepare-commit-msg-ai/lists"}