/git-clean-branches

Primary LanguageHaskellMIT LicenseMIT

git-clean-branches

Clean up local branches deleted on a remote

Build project

cabal new-build

Usage

Copy the executable file to your PATH

Clean up

git clean-branches

Fetch upstream branches before clean up

git clean-branches --fetch-upstream

Show help message

git clean-branches --help

NOTE

This tool can be implemented using following bash script

git branch --format '%(refname:short) %(upstream:track)' |\
  grep gone |\
  awk '{print $1}' |\
  xargs -I f git branch -D f