{"id":13596075,"url":"https://github.com/seachicken/gh-poi","last_synced_at":"2026-05-02T23:06:46.648Z","repository":{"id":38015986,"uuid":"412209066","full_name":"seachicken/gh-poi","owner":"seachicken","description":"✨ Safely clean up your local branches","archived":false,"fork":false,"pushed_at":"2026-03-29T11:29:10.000Z","size":248,"stargazers_count":931,"open_issues_count":9,"forks_count":33,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-04-02T08:39:48.333Z","etag":null,"topics":["cli","gh-extension"],"latest_commit_sha":null,"homepage":"https://dev.to/seachicken/safely-clean-up-your-local-branches-9i3","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/seachicken.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"seachicken","patreon":"seachicken","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-09-30T19:59:12.000Z","updated_at":"2026-04-01T11:53:46.000Z","dependencies_parsed_at":"2023-01-31T18:01:09.748Z","dependency_job_id":"ffe7a140-5cf5-4839-9319-b84a67c101fa","html_url":"https://github.com/seachicken/gh-poi","commit_stats":null,"previous_names":[],"tags_count":73,"template":false,"template_full_name":null,"purl":"pkg:github/seachicken/gh-poi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seachicken%2Fgh-poi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seachicken%2Fgh-poi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seachicken%2Fgh-poi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seachicken%2Fgh-poi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seachicken","download_url":"https://codeload.github.com/seachicken/gh-poi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seachicken%2Fgh-poi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31427387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T02:22:46.605Z","status":"ssl_error","status_checked_at":"2026-04-05T02:22:33.263Z","response_time":75,"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":["cli","gh-extension"],"created_at":"2024-08-01T16:02:07.420Z","updated_at":"2026-05-02T23:06:46.642Z","avatar_url":"https://github.com/seachicken.png","language":"Go","funding_links":["https://github.com/sponsors/seachicken","https://patreon.com/seachicken"],"categories":["Go","cli","⭐ Most Starred","Git","Repo \u0026 Branch"],"sub_categories":[],"readme":"# gh poi\n\n\u003cimg alt=\"logo\" src=\"https://user-images.githubusercontent.com/5178598/152155497-c06799b7-a95a-44e5-a8a0-a0a9c96ce646.png\" /\u003e\n\n\u003ca href=\"https://github.com/seachicken/gh-poi/actions/workflows/ci.yml\"\u003e\u003cimg alt=\"CI\" src=\"https://github.com/seachicken/gh-poi/actions/workflows/ci.yml/badge.svg\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/seachicken/gh-poi\"\u003e\u003cimg alt=\"codecov\" src=\"https://codecov.io/gh/seachicken/gh-poi/branch/main/graph/badge.svg?token=tcPxPgst2q\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://bestpractices.coreinfrastructure.org/projects/6380\"\u003e\u003cimg alt=\"CII Best Practices\" src=\"https://bestpractices.coreinfrastructure.org/projects/6380/badge\" /\u003e\u003c/a\u003e\n\nA GitHub CLI extension to safely clean up local branches you no longer need.\n\n## Motivation\n\nDaily development makes it difficult to know which branch is active when there are many unnecessary branches left locally, which causes a small amount of stress. If you squash merge a pull request, there is no history of the merge to the default branch, so you have to force delete the branch to clean it up, and you have to be careful not to accidentally delete the active branch.\n\nWe have made it possible to automatically determine which branches have been merged and clean up the local environment without worry.\n\n## Installation\n\n```\ngh extension install seachicken/gh-poi\n```\n\n## Usage\n\n- `gh poi` Delete the merged local branches\n- `gh poi --state (closed|merged)` Specify the PR state to delete (default `merged`)\n- `gh poi --scan (quick|deep)` Specify the scan mode (default `quick`)\n  - `quick`: Fast; checks \"origin\" and \"upstream\" remotes. Identifies PRs using only the latest commit on each branch\n  - `deep`: Comprehensive; scans all registered remotes. Performs a deeper history check to link branches to PRs, ensuring no potential matches are missed across multiple forks\n  - Note: poi ensures safe deletion in both modes\n- `gh poi --dry-run` Show branches to delete without actually deleting it\n- `gh poi --debug` Enable debug logs\n- `gh poi lock \u003cbranchname\u003e...` Lock branches to prevent them from being deleted\n- `gh poi unlock \u003cbranchname\u003e...` Unlock branches to allow them to be deleted\n\n\u003cimg alt=\"demo\" src=\"https://user-images.githubusercontent.com/5178598/140624593-bf38ded3-388b-4a4b-a5c0-4053f8de51ad.gif\" /\u003e\n\n## FAQ\n\n### Why the name \"poi\"?\n\n\"poi\" means \"feel free to throw it away\" in Japanese.  \nIf you prefer an alias, you can change it with [gh alias set](https://cli.github.com/manual/gh_alias_set). (e.g. `gh alias set clean-branches poi`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseachicken%2Fgh-poi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseachicken%2Fgh-poi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseachicken%2Fgh-poi/lists"}