knipferrc / branch-cleaner

Cleanup old unused git branches

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/knipferrc/branch-cleaner/main/install.sh | sh

Go

go install github.com/knipferrc/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

A config file will be generated (branch-cleaner.yml) in the config directory of the OS in which the app is ran from. If XDG_CONFIG_HOME is set, that will be used instead.

settings:
  enable_logging: false
  protected_branches:
    - main
    - master
    - develop
    - dev
    - prod

About

Cleanup old unused git branches

License:MIT License


Languages

Language:Go 61.1%Language:Shell 38.4%Language:Makefile 0.5%