Simple cli program to clean up local git branches that have been deleted on remote.
Rules
- Branch must have existed on origin at some point
- Branch must be deleted on origin
- Branch is not current working branch
Installing
cp git-clean.sh /usr/bin/git-clean
chmod +555 /usr/bin/git-clean
Using (in git repo)
git-clean