{"repo":"seachicken/gh-poi","free":true,"listed":false,"github":"https://github.com/seachicken/gh-poi","clone":"git clone https://github.com/seachicken/gh-poi.git","description":"✨ Safely clean up your local branches","language":"Go","stars":1002,"topics":["cli","gh-extension"],"license":"MIT","category":"cli-tools","readme_excerpt":"gh poi A GitHub CLI extension to safely clean up local branches you no longer need. Motivation Daily 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. We have made it possible to automatically determine which branches have been merged and clean up the local environment without worry. Installation Usage - gh poi Delete the merged local branches - gh poi --state (closed merged) Specify the PR state to delete (default merged ) - gh poi --scan (quick deep) Specify the scan mode (default quick ) - quick : Fast; checks \"origin\" and \"upstream\" remotes. Identifies PRs using only the latest commit on each branch - 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 - Note: poi ensures safe deletion in both modes - gh poi --dry-run Show branches to delete without actually deleting it - gh poi --debug Enable debug logs - gh poi lock ... Lock branches to prevent them from being deleted - gh poi unlock ... Unlock branches to allow them to be deleted FAQ Why the name \"poi\"? \"poi\" means \"feel free to throw it away\" in Japanese. If you prefer an alias, y","default_branch":null,"files":null,"tree":[],"storefront":"/r/seachicken","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/seachicken/gh-poi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}