{"id":19916051,"url":"https://github.com/szhu/github-prune","last_synced_at":"2025-09-08T14:41:41.230Z","repository":{"id":44387127,"uuid":"191427343","full_name":"szhu/github-prune","owner":"szhu","description":"GitHub-centralized Git: A simple command that removes local branches that correspond to a closed or merged PR.","archived":false,"fork":false,"pushed_at":"2022-03-17T22:15:03.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T23:26:21.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/szhu.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}},"created_at":"2019-06-11T18:17:30.000Z","updated_at":"2023-09-08T17:54:44.000Z","dependencies_parsed_at":"2022-07-15T00:30:28.568Z","dependency_job_id":null,"html_url":"https://github.com/szhu/github-prune","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szhu%2Fgithub-prune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szhu%2Fgithub-prune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szhu%2Fgithub-prune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szhu%2Fgithub-prune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szhu","download_url":"https://codeload.github.com/szhu/github-prune/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241344408,"owners_count":19947551,"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":[],"created_at":"2024-11-12T21:43:20.273Z","updated_at":"2025-03-01T09:24:08.090Z","avatar_url":"https://github.com/szhu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-prune\n\nDo you have many local Git branches, but most of them are super old?\n\n**github-prune** quickly and safely deletes branches you don't need anymore!\n\n## Purpose\n\nSpecifically, this tool will delete all local branches:\n\n- Whose latest commit has been pushed to a PR, and\n- Whose latest commit doesn't exist in a remote branch.\n\nAfter running this tool, all remaining branches should be either branches that\nhave unpushed work or branches that you're still working on.\n\n## Installing\n\n**Step 1:**\\\nInstall [Deno](https://deno.land). (On macOS: `brew install deno`)\n\n**Step 2:**\\\n`deno install -f --allow-run --name github-prune https://github.com/szhu/github-prune/raw/master/lib/main.ts`\n\n## Using\n\nIn your terminal, `cd` into the repo you want to clean up, then run\n\n     ~/.deno/bin/github-prune\n\nThis tool will print out an description of what it does and asks you to confirm\nbefore it does anything.\n\nAdvanced: Add `~/.deno/bin` to your `PATH` and you can run this as `github-prune`!\n\n## Contributing\n\nIt's easy to set up this tool for development as well. Here's how to get up and\nrunning:\n\n1. Install [Deno](https://deno.land). (On macOS: `brew install deno`)\n2. Clone this repo. Let's say you cloned it to `/path/to/github-prune`.\n3. `cd` into the repo that you want to test this tool on.\n4. Run: `deno --allow-run /path/to/github-prune/lib/main.ts`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszhu%2Fgithub-prune","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszhu%2Fgithub-prune","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszhu%2Fgithub-prune/lists"}