Skip to content

mistakenelf/branch-cleaner

Repository files navigation

branch-cleaner

Release Software License Go Report Card Godoc Powered By: GoReleaser

Screenshot

About The Project

A TUI to cleanup local git branches

Built With

Installation

Curl

curl -sfL https://raw.githubusercontent.com/mistakenelf/branch-cleaner/main/install.sh | sh

Go

go install github.com/mistakenelf/branch-cleaner@latest

Features

  • Easily delete branches one at a time or in bulk
  • Ability to filter by branch name
  • Protect branches from being deleted

Usage

  • branch-cleaner will start the application in the current directory
  • branch-cleaner -h will show the help menu
  • branch-cleaner -v will show the current version
  • branch-cleaner update will update branch cleaner to the latest version

Too much to type? Create an alias:

alias bc="branch-cleaner"

Configuration

Configuration is handled through environment variables.

PROTECTED_BRANCHES="main:master:develop:dev:prod" branch-cleaner