{"id":34779818,"url":"https://github.com/emzinnia/auto-git","last_synced_at":"2026-04-24T17:06:16.371Z","repository":{"id":327932295,"uuid":"1111381506","full_name":"emzinnia/auto-git","owner":"emzinnia","description":"automatically create git commands in the background","archived":false,"fork":false,"pushed_at":"2025-12-25T06:22:07.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-26T20:02:09.219Z","etag":null,"topics":["automation","cli","git"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emzinnia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-06T20:31:14.000Z","updated_at":"2025-12-25T00:10:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/emzinnia/auto-git","commit_stats":null,"previous_names":["emzinnia/auto-git"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/emzinnia/auto-git","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emzinnia%2Fauto-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emzinnia%2Fauto-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emzinnia%2Fauto-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emzinnia%2Fauto-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emzinnia","download_url":"https://codeload.github.com/emzinnia/auto-git/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emzinnia%2Fauto-git/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32232719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["automation","cli","git"],"created_at":"2025-12-25T08:47:54.308Z","updated_at":"2026-04-24T17:06:16.366Z","avatar_url":"https://github.com/emzinnia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# auto-git\n\nThis is a simple tool I created and use to automatically create commit messages based off my current work tree.\n\n## Obvious Disclaimer\n\nAI can make mistakes. Don't use this for your missile software.\n\n## Installation\n\n### Requirements\n\n- Python 3.11 or newer\n\n### Install\n\n```bash\nuv sync --all-groups\n```\n\n### Set An OpenAI API Key\n\n```bash\n# .env\nOPEN_AI_API_KEY=\u003cyour_key_here\u003e\n```\n\n### CLI install (optional)\n\nTo install the `auto-git` command globally as a uv tool:\n\n```bash\nuv tool install --editable .\n```\n\nTo uninstall:\n\n```bash\nuv tool uninstall auto-git\n```\n\n## CLI\n\nUse via `uv run auto-git \u003ccommand\u003e` (recommended), or after `uv tool install`, `auto-git \u003ccommand\u003e`.\n\n### Commands\n\n- `generate` — Plan commits from current changes and print the JSON plan. Options: `--staged`, `--unstaged`, `--untracked` (defaults to staged+unstaged if none provided).\n- `commit` — Plan and apply commits. Options: same inclusion flags as `generate`, plus `--dry-run` to preview commits/diff without writing history.\n- `amend_unpushed` — Rewrite unpushed commits with improved messages. Options: `--max-count` (default 20) for fallback range, `--dry-run` to preview only, `--allow-dirty` to bypass clean-tree requirement. Aborts if history has merges.\n- `fix` — Request a rewritten commit history (JSON only) for the local branch. Includes only unpushed commits unless `--force` is used. Options: `--max-count` (default 20) for fallback/force mode, `--force` to allow including pushed commits.\n- `status` — Show staged and unstaged files (wrapper around git diff name-only).\n- `lint` — Lint commit subjects since upstream (or last `count`, default 10). Prints errors or a pass summary.\n- `watch` — Watch the repo for changes, stage everything, have AI split into commits, and apply them. Option: `--interval` seconds for the watcher loop (default 60). Ctrl+C stops cleanly.\n\n### Examples\n\n```bash\n# Preview proposed commits and diff (no writes)\nuv run auto-git commit --dry-run --untracked\n\n# Apply commits for staged + unstaged changes (default)\nuv run auto-git commit\n\n# Just get the commit plan as JSON\nuv run auto-git generate --unstaged\n\n# Rewrite unpushed commits after previewing\nuv run auto-git amend_unpushed --dry-run\nuv run auto-git amend_unpushed --allow-dirty\n```\n\n## Testing\n\nRun the test suite with:\n\n```\nuv run pytest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femzinnia%2Fauto-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femzinnia%2Fauto-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femzinnia%2Fauto-git/lists"}