git prune deleted branches code example
Example 1: clean local branches git
git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d
Example 2: git prune local branches
npx git-removed-branches --prune
git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d
npx git-removed-branches --prune