git-trim

Trim your git remote tracking branches that are merged or gone

brewmacoslinux
Try with needOr install directly
Source

About

Trim your git remote tracking branches that are merged or gone

Commands

git-trim

Examples

Delete all remote tracking branches that have been merged into the current branch$ git trim
Delete remote tracking branches that no longer exist on the remote$ git trim --gone
Show what would be deleted without actually deleting branches$ git trim --dry-run