{"id":23209112,"url":"https://github.com/runekaagaard/git-commit-llm","last_synced_at":"2025-04-05T12:10:07.792Z","repository":{"id":267456150,"uuid":"901308102","full_name":"runekaagaard/git-commit-llm","owner":"runekaagaard","description":"Generate git commit messages using Large Language Models to analyze your changes. Creates concise, consistent commit messages following git best practices.","archived":false,"fork":false,"pushed_at":"2024-12-11T18:43:37.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T22:52:18.976Z","etag":null,"topics":["anthropic","claude","commit","git","llm"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/runekaagaard.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-12-10T12:25:04.000Z","updated_at":"2024-12-11T18:43:41.000Z","dependencies_parsed_at":"2025-02-10T23:02:51.167Z","dependency_job_id":null,"html_url":"https://github.com/runekaagaard/git-commit-llm","commit_stats":null,"previous_names":["runekaagaard/git-commit-llm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runekaagaard%2Fgit-commit-llm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runekaagaard%2Fgit-commit-llm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runekaagaard%2Fgit-commit-llm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runekaagaard%2Fgit-commit-llm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runekaagaard","download_url":"https://codeload.github.com/runekaagaard/git-commit-llm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332610,"owners_count":20921853,"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":["anthropic","claude","commit","git","llm"],"created_at":"2024-12-18T18:14:45.969Z","updated_at":"2025-04-05T12:10:07.676Z","avatar_url":"https://github.com/runekaagaard.png","language":"Shell","readme":"# git-commit-llm\n\nGenerate git commit messages using LLMs by analyzing your staged changes.\n\n## Requirements\n\n- git\n- Text editor (set in `$EDITOR`)\n- llm CLI tool with API key\n\n## Installation\n\nInstall dependencies:\n```bash\n# Install llm CLI tool\npipx install llm\npipx inject llm llm-claude-3\n```\n\nInstall git-commit-llm:\n```bash\ncurl -o /usr/local/bin/git-commit-llm https://raw.githubusercontent.com/runekaagaard/git-commit-llm/refs/heads/main/git-commit-llm\nchmod +x /usr/local/bin/git-commit-llm\n```\n\n## Usage\n\nBasic usage:\n```bash\n# Generate commit message for staged changes\ngit-commit-llm\n\n# Stage all changes and generate message\ngit-commit-llm --stage-all\n\n# Generate detailed message for major changes\ngit-commit-llm --major\n```\n\nAvailable options:\n```\n-h, --help          Show help message\n-s, --stage-all     Stage all changes first\n-m, --major         Generate detailed multi-line message\n-o, --model MODEL   Select LLM model (default: claude-3-sonnet-20240229)\n-p, --push          Push changes after committing\n-d, --diff          Show staged changes first\n```\n\n## How it works\n\n1. Optionally stages all changes (--stage-all/-s)\n2. Optionally shows staged changes for review (--diff/-d)\n3. Generates a commit message using an LLM based on the staged diff and branch name\n4. Opens your editor to review/modify\n5. Creates commit on save, aborts on exit\n6. Optionally pushes changes (--push/-p)\n\n## DWIM (Do What I Mean)\n\nFor the most common workflow of staging all changes, generating a commit message, and pushing, add this alias to your `.bashrc` or `.zshrc`:\n\n```bash\nalias gcl=\"git-commit-llm -sdp\"\n```\n\nNow you can simply run `gcl` to stage all changes, see the diff, generate a commit message and push after committing.\n\n## License\n\nMozilla Public License Version 2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunekaagaard%2Fgit-commit-llm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunekaagaard%2Fgit-commit-llm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunekaagaard%2Fgit-commit-llm/lists"}