Utility to delete branches that are no longer in remote.
Just make sure the binary is in your execution path. The repo is automatically detected based on the current environment (i.e your current working directory).
cd <path_to_repo>
git remote update --prune <remote>
git-branch-cleanup
By default you are prompted to delete each branch. If you want to avoid the prompts, use the -f
flag.
- Add support for pruning so that running
git remote
beforehand is not necessary.