git purge

A git extension to purge stale local branches deleted from remote.

View the Project on GitHub mariocampacci/git-purge

📚 Table of Contents


✨ Features


Installation

Install via any JS package manager (npm, yarn, pnpm) or Homebrew.

npm

npm install -g git-purge

Homebrew

brew install mariocampacci/tap/git-purge

Usage

git purge

Options

Flag Description
-f, --force Force delete branches
-n, --dry-run Show what would be deleted without deleting
-v, --verbose Show detailed output
-V, --version Show version
-h Show help message

Uninstall

npm uninstall -g git-purge  # if installed via npm
# or
brew uninstall git-purge  # if installed via brew