Categorygithub.com/aerfio/gobc
modulepackage
1.0.4-alpha1
Repository: https://github.com/aerfio/gobc.git
Documentation: pkg.go.dev

# README

gobc - Go branch clean

CircleCI Go Report Card

Purpose

My typical workflow consists of making new branch with needed changes, then making PR with it and deleting it afterwards, when it is no logner needed.

Unfortunately it leaves me with useless local branches. That's why gobc was created - it checks which local branches are not on remote (origin) and deletes them.

Installation

curl -Lo gobc "https://github.com/aerfio/gobc/releases/download/$(curl -s https://api.github.com/repos/aerfio/gobc/releases/latest | grep tag_name | cut -d '"' -f 4)/gobc_$(uname)_amd64" \
&& chmod +x ./gobc \
&& sudo mv gobc /usr/local/bin

Usage

Just type gobc to list local and remote branches. gobc rm to remove those excess ones, gobc completion {SHELL} to output completion.