Windows

✨ Safely clean up your local branches

cligh-extension
スター成長
スター
1k
フォーク
40
週間成長
+1
Issue
6
5001k
2023年1月2024年3月2025年6月2026年9月
成果物Go Modules
README

gh poi

logo

CI codecov CII Best Practices

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

gh extension install seachicken/gh-poi

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 <branchname>... Lock branches to prevent them from being deleted
  • gh poi unlock <branchname>... Unlock branches to allow them to be deleted
demo

FAQ

Why the name "poi"?

"poi" means "feel free to throw it away" in Japanese.
If you prefer an alias, you can change it with gh alias set. (e.g. gh alias set clean-branches poi)

関連リポジトリ
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

TypeScriptnpmcliOtherautomationipaas
n8n.io
203.8k60.6k
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

PythonPyPIcliThe Unlicenseyoutube-dlpython
discord.gg/H5MNcFW63r
189.9k16.5k
ohmyzsh/ohmyzsh

🙃 A delightful community-driven (with 2,500+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up with the latest updates from the community.

ShellcliMIT Licenseshellzsh-configuration
ohmyz.sh
189.6k26.6k
google-gemini/gemini-cli

An open-source AI agent that brings the power of Gemini directly into your terminal.

TypeScriptnpmcliApache License 2.0geminigemini-api
geminicli.com
106.9k14.5k
sherlock-project/sherlock

Hunt down social media accounts by username across social networks

PythonPyPIcliMIT Licenseosintreconnaissance
sherlockproject.xyz
91.1k10.7k
OpenHands/OpenHands

🙌 OpenHands: AI-Driven Development

TypeScriptnpmcliMIT Licenseagentartificial-intelligence
openhands.dev
86.9k11.4k
junegunn/fzf

:cherry_blossom: A command-line fuzzy finder

GoGo ModulescliMIT Licensefzfgo
junegunn.github.io/fzf/
82.9k2.9k
jesseduffield/lazygit

simple terminal UI for git commands

GoGo ModulescliMIT Licensecligit
82.1k3k
rtk-ai/rtk

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

Rustcrates.iocliApache License 2.0agentic-codingai-coding
rtk-ai.app
79.6k5k
Panniantong/Agent-Reach

Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.

PythonPyPIcliMIT Licenseagent-infrastructureai-agent
78.9k6.8k
career-ops-hq/career-ops

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

JavaScriptnpmcliMIT Licenseai-agentanthropic
career-ops.org
70.6k13.3k
santifer/career-ops

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

JavaScriptnpmcliMIT Licenseai-agentanthropic
career-ops.org
69.6k13.2k