{"id":15510951,"url":"https://github.com/andrewmcodes/pruner","last_synced_at":"2025-10-09T14:46:14.438Z","repository":{"id":56889431,"uuid":"235921931","full_name":"andrewmcodes/pruner","owner":"andrewmcodes","description":"CLI tool to delete Git branches","archived":false,"fork":false,"pushed_at":"2020-03-18T23:12:35.000Z","size":22,"stargazers_count":20,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-28T10:53:25.933Z","etag":null,"topics":["gem","git","pruner","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/andrewmcodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-24T01:43:00.000Z","updated_at":"2023-08-15T07:37:11.000Z","dependencies_parsed_at":"2022-08-20T23:40:36.655Z","dependency_job_id":null,"html_url":"https://github.com/andrewmcodes/pruner","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/andrewmcodes/pruner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewmcodes%2Fpruner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewmcodes%2Fpruner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewmcodes%2Fpruner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewmcodes%2Fpruner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewmcodes","download_url":"https://codeload.github.com/andrewmcodes/pruner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewmcodes%2Fpruner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259389879,"owners_count":22850111,"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":["gem","git","pruner","ruby"],"created_at":"2024-10-02T09:52:00.673Z","updated_at":"2025-10-09T14:46:09.417Z","avatar_url":"https://github.com/andrewmcodes.png","language":"Ruby","readme":"![StandardRB](https://github.com/andrewmcodes/pruner/workflows/StandardRB/badge.svg)\n![Tests](https://github.com/andrewmcodes/pruner/workflows/Tests/badge.svg)\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/andrewmcodes/pruner\"\u003e\n    \u003cimg src=\"https://repository-images.githubusercontent.com/235921931/1c26a800-3e2c-11ea-802c-68edb79fc033\" alt=\"Logo\"\u003e\n  \u003c/a\u003e\n\n  \u003ch2 align=\"center\"\u003ePruner\u003c/h2\u003e\n\n  \u003cp align=\"center\"\u003e\n    A small Ruby Gem to help you delete Git branches.\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\u003chr/\u003e\n\n- [Notice](#notice)\n- [Demo](#demo)\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Example](#example)\n    - [Step 1](#step-1)\n    - [Step 2](#step-2)\n    - [Step 3](#step-3)\n    - [Step 4](#step-4)\n- [Development](#development)\n- [Contributing](#contributing)\n  - [Coding Standards](#coding-standards)\n- [Code of Conduct](#code-of-conduct)\n- [License](#license)\n\n## Notice\n\nThis implementation is a bit naive so **be careful**. If you select the current branch you have checked out, the gem will **not** delete it.\n\n## Demo\n\n[![asciicast](https://asciinema.org/a/x94EQbQe3GauDzErwJf3Rq1Kl.svg)](https://asciinema.org/a/x94EQbQe3GauDzErwJf3Rq1Kl)\n\n## Installation\n\n```sh\ngem install pruner\n```\n\n## Usage\n\nInside of a repository working directory:\n\n```sh\npruner\n```\n\nA multiselect prompt will appear. Use the arrow keys to move between branch names, and hit the spacebar on branches you want to delete. When you have finished making your selections, hit \u003ckbd\u003eEnter\u003c/kbd\u003e.\n\nThe gem will then delete your branches! It's as easy as that.\n\n### Example\n\n#### Step 1\n\nRun the `pruner` command.\n\n```sh\n➜ pruner\n```\n\n#### Step 2\n\nUse the spacebar to select the branches you want to delete and hit \u003ckbd\u003eEnter\u003c/kbd\u003e.\n\n```sh\n➜ pruner\n\n==== Select branches to delete ====\n test_1, test_2, test_3\n  ⬡ master\n  ⬢ test_1\n  ⬢ test_2\n‣ ⬢ test_3\n```\n\n#### Step 3\n\nType \u003ckbd\u003eY\u003c/kbd\u003e and then hit \u003ckbd\u003eEnter\u003c/kbd\u003e.\n\n```sh\n➜ pruner\n\n==== Select branches to delete ====\n test_1, test_2, test_3\n\n==== Are you sure you want to delete these branches? ====\n→ (Y/n) Y\n```\n\n#### Step 4\n\nThe branches will be deleted and the output will look like the output below.\n\n```sh\n➜ pruner\n\n==== Select branches to delete ====\n test_1, test_2, test_3\n\n==== Are you sure you want to delete these branches? ====\n→ Yes\n\n==== Deleting Branches ====\n- test_1\n- test_2\n- test_3\n\n==== Branches Deleted ====\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/andrewmcodes/pruner. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/andrewmcodes/pruner/blob/master/CODE_OF_CONDUCT.md).\n\n### Coding Standards\n\nThis project uses [Standard](https://github.com/testdouble/standard) to minimize bike shedding related to code formatting.\n\n## Code of Conduct\n\nEveryone interacting in the Pruner project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/andrewmcodes/pruner/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewmcodes%2Fpruner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewmcodes%2Fpruner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewmcodes%2Fpruner/lists"}